alkimia
8.0.3
src
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 <alkimia/alkvalue.h>
24
25
#include <QDate>
26
#include <QDBusArgument>
27
#include <QMetaType>
28
#include <QTime>
29
35
class
ALK_NO_EXPORT
AlkQuoteItem
:
public
QObject
36
{
37
Q_OBJECT
38
39
public
:
40
AlkQuoteItem
(QObject *parent = 0);
41
~
AlkQuoteItem
();
42
43
AlkQuoteItem
(
const
AlkQuoteItem
&item, QObject *parent = 0);
44
48
const
QString &symbol()
const
;
49
53
const
QDateTime &dateTime()
const
;
54
58
const
AlkValue
¤tValue()
const
;
59
63
const
AlkValue
&openingValue()
const
;
64
68
const
AlkValue
&highValue()
const
;
69
73
const
AlkValue
&lowValue()
const
;
74
78
const
AlkValue
&closingValue()
const
;
79
83
const
AlkValue
&volume()
const
;
84
88
const
AlkValue
&marketCap()
const
;
89
93
const
AlkValue
&earningsPerShare()
const
;
94
98
const
AlkValue
&changeToday()
const
;
99
103
const
AlkValue
&ebitda()
const
;
104
108
const
QString &recordId()
const
;
109
110
void
setSymbol(
const
QString &symbol);
111
void
setDateTime(
const
QDateTime &datetime);
112
void
setCurrentValue(
const
AlkValue
&value);
113
void
setOpeningValue(
const
AlkValue
&value);
114
void
setHighValue(
const
AlkValue
&value);
115
void
setLowValue(
const
AlkValue
&value);
116
void
setClosingValue(
const
AlkValue
&value);
117
void
setVolume(
const
AlkValue
&value);
118
void
setMarketCap(
const
AlkValue
&value);
119
void
setEarningsPerShare(
const
AlkValue
&value);
120
void
setChangeToday(
const
AlkValue
&value);
121
void
setEbitda(
const
AlkValue
&value);
122
void
setRecordId(
const
QString &recordId);
123
124
private
:
126
class
Private
;
128
Private
*
const
d;
129
};
130
131
ALK_NO_EXPORT QDBusArgument &
operator<<
(QDBusArgument &argument,
const
AlkQuoteItem
&item);
132
ALK_NO_EXPORT
const
QDBusArgument &
operator>>
(
const
QDBusArgument &argument,
AlkQuoteItem
&item);
133
134
Q_DECLARE_METATYPE(
AlkQuoteItem
)
135
136
#endif
operator>>
ALK_NO_EXPORT const QDBusArgument & operator>>(const QDBusArgument &argument, AlkQuoteItem &item)
Definition:
alkquoteitem.cpp:214
operator<<
ALK_NO_EXPORT QDBusArgument & operator<<(QDBusArgument &argument, const AlkQuoteItem &item)
Definition:
alkquoteitem.cpp:199
AlkQuoteItem
Definition:
alkquoteitem.h:36
AlkQuoteItem::Private
Definition:
alkquoteitem.cpp:23
AlkValue
Generated by
1.8.18