alkimia  7.0.1
alkquoteitem.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 ALKQUOTEITEM_H
21 #define ALKQUOTEITEM_H
22 
23 #include "alk_export.h"
24 #include "alkvalue.h"
25 
26 #include <QDate>
27 #include <QDBusArgument>
28 #include <QMetaType>
29 #include <QTime>
30 
36 class ALK_EXPORT AlkQuoteItem : public QObject
37 {
38  Q_OBJECT
39 
40 public:
41  AlkQuoteItem(QObject *parent = 0);
42  ~AlkQuoteItem();
43 
44  AlkQuoteItem(const AlkQuoteItem &item, QObject* parent = 0);
45 
49  const QString& symbol() const;
50 
54  const QDateTime& dateTime() const;
55 
59  const AlkValue& currentValue() const;
60 
64  const AlkValue& openingValue() const;
65 
69  const AlkValue& highValue() const;
70 
74  const AlkValue& lowValue() const;
75 
79  const AlkValue& closingValue() const;
80 
84  const AlkValue& volume() const;
85 
89  const AlkValue& marketCap() const;
90 
91 
95  const AlkValue& earningsPerShare() const;
96 
100  const AlkValue& changeToday() const;
101 
105  const AlkValue& ebitda() const;
106 
110  const QString& recordId() const;
111 
112 
113  void setSymbol(const QString &symbol);
114  void setDateTime(const QDateTime &datetime);
115  void setCurrentValue(const AlkValue &value);
116  void setOpeningValue(const AlkValue &value);
117  void setHighValue(const AlkValue &value);
118  void setLowValue(const AlkValue &value);
119  void setClosingValue(const AlkValue &value);
120  void setVolume(const AlkValue &value);
121  void setMarketCap(const AlkValue &value);
122  void setEarningsPerShare(const AlkValue &value);
123  void setChangeToday(const AlkValue &value);
124  void setEbitda(const AlkValue &value);
125  void setRecordId(const QString &recordId);
126 
127 private:
129  class Private;
131  Private* const d;
132 
133 };
134 
135 ALK_EXPORT QDBusArgument& operator<<(QDBusArgument& argument, const AlkQuoteItem &item);
136 ALK_EXPORT const QDBusArgument& operator>>(const QDBusArgument& argument, AlkQuoteItem &item);
137 
138 Q_DECLARE_METATYPE(AlkQuoteItem)
139 
140 #endif
Private *const d
Definition: alkquoteitem.h:129
ALK_EXPORT QDBusArgument & operator<<(QDBusArgument &argument, const AlkQuoteItem &item)
ALK_EXPORT const QDBusArgument & operator>>(const QDBusArgument &argument, AlkQuoteItem &item)