Alkimia API

alkquoteitem.h
1/*
2 SPDX-FileCopyrightText: 2011 Alvaro Soliverez asoliverez @kde.org
3
4 This file is part of libalkimia.
5
6 SPDX-License-Identifier: LGPL-2.1-or-later
7*/
8
9#ifndef ALKQUOTEITEM_H
10#define ALKQUOTEITEM_H
11
12#include <alkimia/alkvalue.h>
13
14#include <QDBusArgument>
15#include <QDate>
16#include <QMetaType>
17#include <QTime>
18
19/**
20 * This class represents a single quote of an equity
21 * It holds information of use to assess the equity value
22 */
23
24class ALK_NO_EXPORT AlkQuoteItem : public QObject
25{
26 Q_OBJECT
27
28public:
29 explicit AlkQuoteItem(QObject *parent = 0);
31
32 AlkQuoteItem(const AlkQuoteItem &item, QObject *parent = 0);
33
34 /**
35 * This is the symbol of the equity
36 */
37 const QString &symbol() const;
38
39 /**
40 * Date and time of the quote
41 */
42 const QDateTime &dateTime() const;
43
44 /**
45 * Value of the share at the time of the quote
46 */
47 const AlkValue &currentValue() const;
48
49 /**
50 * Value of the share when the market opened
51 */
52 const AlkValue &openingValue() const;
53
54 /**
55 * Highest value of the share since the market opened that day
56 */
57 const AlkValue &highValue() const;
58
59 /**
60 * Lowest value of the share since the market opened that day
61 */
62 const AlkValue &lowValue() const;
63
64 /**
65 * Value of the share when the market closed
66 */
67 const AlkValue &closingValue() const;
68
69 /**
70 * Number of shares traded
71 */
72 const AlkValue &volume() const;
73
74 /**
75 * Market capitalization
76 */
77 const AlkValue &marketCap() const;
78
79 /**
80 * Earning per share
81 */
82 const AlkValue &earningsPerShare() const;
83
84 /**
85 * Today's change
86 */
87 const AlkValue &changeToday() const;
88
89 /**
90 * Earnings Before Interest, Taxes, Depreciation, and Amortization
91 */
92 const AlkValue &ebitda() const;
93
94 /**
95 * Internal id
96 */
97 const QString &recordId() const;
98
99 void setSymbol(const QString &symbol);
100 void setDateTime(const QDateTime &datetime);
101 void setCurrentValue(const AlkValue &value);
102 void setOpeningValue(const AlkValue &value);
103 void setHighValue(const AlkValue &value);
104 void setLowValue(const AlkValue &value);
105 void setClosingValue(const AlkValue &value);
106 void setVolume(const AlkValue &value);
107 void setMarketCap(const AlkValue &value);
108 void setEarningsPerShare(const AlkValue &value);
109 void setChangeToday(const AlkValue &value);
110 void setEbitda(const AlkValue &value);
111 void setRecordId(const QString &recordId);
112
113private:
114 /// \internal d-pointer class.
115 class Private;
116 /// \internal d-pointer instance.
117 Private *const d;
118};
119
120ALK_NO_EXPORT QDBusArgument &operator<<(QDBusArgument &argument, const AlkQuoteItem &item);
121ALK_NO_EXPORT const QDBusArgument &operator>>(const QDBusArgument &argument, AlkQuoteItem &item);
122
123Q_DECLARE_METATYPE(AlkQuoteItem)
124
125#endif
This class represents a single quote of an equity It holds information of use to assess the equity va...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.