alkimia  7.0.1
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 "alk_export.h"
24 
25 
26 #include <QMetaType>
27 #include <QDBusArgument>
28 #include <QObject>
29 #include <QString>
30 
31 class ALK_EXPORT AlkCompany : public QObject
32 {
33  Q_OBJECT
34 public:
35  AlkCompany(QObject *parent = 0);
36  AlkCompany(const AlkCompany &company, QObject *parent = 0);
37  ~AlkCompany();
38 
42  const QString& symbol() const;
43 
47  const QString& name() const;
48 
52  const QString& type() const;
53 
57  const QString& exchange() const;
58 
62  const QString& recordId() const;
63 
64  void setSymbol(const QString &symbol);
65  void setName(const QString &name);
66  void setType(const QString &type);
67  void setExchange(const QString &exchange);
68  void setRecordId(const QString &recordId);
69 
70 
71 private:
73  class Private;
75  Private* const d;
76 
77 
78 };
79 
80 ALK_EXPORT QDBusArgument& operator<<(QDBusArgument& argument, const AlkCompany &company);
81 ALK_EXPORT const QDBusArgument& operator>>(const QDBusArgument& argument, AlkCompany &company);
82 
83 Q_DECLARE_METATYPE(AlkCompany)
84 
85 #endif
ALK_EXPORT QDBusArgument & operator<<(QDBusArgument &argument, const AlkCompany &company)
Definition: alkcompany.cpp:107
Private *const d
Definition: alkcompany.h:73
ALK_EXPORT const QDBusArgument & operator>>(const QDBusArgument &argument, AlkCompany &company)
Definition: alkcompany.cpp:115