File indexing completed on 2024-04-28 16:13:24

0001 /*
0002     SPDX-FileCopyrightText: 2011 Alvaro Soliverez asoliverez @kde.org
0003 
0004     This file is part of libalkimia.
0005 
0006     SPDX-License-Identifier: LGPL-2.1-or-later
0007 */
0008 
0009 #ifndef ALKCOMPANY_H
0010 #define ALKCOMPANY_H
0011 
0012 #include <alkimia/alk_export.h>
0013 
0014 #include <QMetaType>
0015 #include <QDBusArgument>
0016 #include <QObject>
0017 #include <QString>
0018 
0019 class ALK_EXPORT AlkCompany : public QObject
0020 {
0021     Q_OBJECT
0022 public:
0023     AlkCompany(QObject *parent = 0);
0024     AlkCompany(const AlkCompany &company, QObject *parent = 0);
0025     ~AlkCompany();
0026 
0027     /**
0028      * Financial symbol
0029      */
0030     const QString &symbol() const;
0031 
0032     /**
0033      * Name of the equity
0034      */
0035     const QString &name() const;
0036 
0037     /**
0038      * Type of the equity
0039      */
0040     const QString &type() const;
0041 
0042     /**
0043      * Exchange market of the equity
0044      */
0045     const QString &exchange() const;
0046 
0047     /**
0048      * Internal id
0049      */
0050     const QString &recordId() const;
0051 
0052     void setSymbol(const QString &symbol);
0053     void setName(const QString &name);
0054     void setType(const QString &type);
0055     void setExchange(const QString &exchange);
0056     void setRecordId(const QString &recordId);
0057 
0058 private:
0059     /// \internal d-pointer class.
0060     class Private;
0061     /// \internal d-pointer instance.
0062     Private *const d;
0063 };
0064 
0065 ALK_EXPORT QDBusArgument &operator<<(QDBusArgument &argument, const AlkCompany &company);
0066 ALK_EXPORT const QDBusArgument &operator>>(const QDBusArgument &argument, AlkCompany &company);
0067 
0068 Q_DECLARE_METATYPE(AlkCompany)
0069 
0070 #endif