alkimia  8.0.2
alkcompany.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright 2011 Alvaro Soliverez asoliverez@kde.org *
3  * *
4  * This file is part of libalkimia. *
5  * *
6  * libalkimia is free software; you can redistribute it and/or *
7  * modify it under the terms of the GNU Lesser General Public License *
8  * as published by the Free Software Foundation; either version 2.1 of *
9  * the License or (at your option) version 3 or any later version. *
10  * *
11  * libalkimia is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this program. If not, see <http://www.gnu.org/licenses/> *
18  ***************************************************************************/
19 
20 #ifndef ALKCOMPANY_H
21 #define ALKCOMPANY_H
22 
23 #include <alkimia/alk_export.h>
24 
25 #include <QMetaType>
26 #include <QDBusArgument>
27 #include <QObject>
28 #include <QString>
29 
30 class ALK_EXPORT AlkCompany : public QObject
31 {
32  Q_OBJECT
33 public:
34  AlkCompany(QObject *parent = 0);
35  AlkCompany(const AlkCompany &company, QObject *parent = 0);
36  ~AlkCompany();
37 
41  const QString &symbol() const;
42 
46  const QString &name() const;
47 
51  const QString &type() const;
52 
56  const QString &exchange() const;
57 
61  const QString &recordId() const;
62 
63  void setSymbol(const QString &symbol);
64  void setName(const QString &name);
65  void setType(const QString &type);
66  void setExchange(const QString &exchange);
67  void setRecordId(const QString &recordId);
68 
69 private:
71  class Private;
73  Private *const d;
74 };
75 
76 ALK_EXPORT QDBusArgument &operator<<(QDBusArgument &argument, const AlkCompany &company);
77 ALK_EXPORT const QDBusArgument &operator>>(const QDBusArgument &argument, AlkCompany &company);
78 
79 Q_DECLARE_METATYPE(AlkCompany)
80 
81 #endif
AlkCompany
Definition: alkcompany.h:30
operator>>
const ALK_EXPORT QDBusArgument & operator>>(const QDBusArgument &argument, AlkCompany &company)
Definition: alkcompany.cpp:115
AlkCompany::Private
Definition: alkcompany.cpp:25
operator<<
ALK_EXPORT QDBusArgument & operator<<(QDBusArgument &argument, const AlkCompany &company)
Definition: alkcompany.cpp:106