9#include "alkquoteitem.h"
11class AlkQuoteItem::Private
16 AlkValue m_currentValue;
17 AlkValue m_openingValue;
20 AlkValue m_closingValue;
23 AlkValue m_changeToday;
29AlkQuoteItem::AlkQuoteItem(
QObject *parent)
35AlkQuoteItem::~AlkQuoteItem()
70 return d->m_currentValue;
75 return d->m_openingValue;
80 return d->m_highValue;
90 return d->m_closingValue;
100 return d->m_marketCap;
105 return d->m_earnings;
110 return d->m_changeToday;
123void AlkQuoteItem::setSymbol(
const QString &symbol)
128void AlkQuoteItem::setDateTime(
const QDateTime &dateTime)
133void AlkQuoteItem::setCurrentValue(
const AlkValue &value)
135 d->m_currentValue = value;
138void AlkQuoteItem::setOpeningValue(
const AlkValue &value)
140 d->m_openingValue = value;
143void AlkQuoteItem::setHighValue(
const AlkValue &value)
145 d->m_highValue = value;
148void AlkQuoteItem::setLowValue(
const AlkValue &value)
150 d->m_lowValue = value;
153void AlkQuoteItem::setClosingValue(
const AlkValue &value)
155 d->m_closingValue = value;
158void AlkQuoteItem::setMarketCap(
const AlkValue &value)
160 d->m_marketCap = value;
163void AlkQuoteItem::setVolume(
const AlkValue &value)
168void AlkQuoteItem::setEarningsPerShare(
const AlkValue &value)
170 d->m_earnings = value;
173void AlkQuoteItem::setChangeToday(
const AlkValue &value)
175 d->m_changeToday = value;
178void AlkQuoteItem::setEbitda(
const AlkValue &value)
183void AlkQuoteItem::setRecordId(
const QString &recordId)
220 argument >> symbol >> dateTime >> currentValue >> openingValue >> highValue >> lowValue
221 >> closingValue >> marketCap >>
volume >> earnings >> change >> ebitda >> recordId;
222 item.setSymbol(symbol);
224 item.setCurrentValue(AlkValue(currentValue,
'.'));
225 item.setOpeningValue(AlkValue(openingValue,
'.'));
226 item.setHighValue(AlkValue(highValue,
'.'));
227 item.setLowValue(AlkValue(lowValue,
'.'));
228 item.setClosingValue(AlkValue(closingValue,
'.'));
229 item.setMarketCap(AlkValue(marketCap,
'.'));
230 item.setVolume(AlkValue(volume,
'.'));
231 item.setEarningsPerShare(AlkValue(earnings,
'.'));
232 item.setChangeToday(AlkValue(change,
'.'));
233 item.setEbitda(AlkValue(ebitda,
'.'));
234 item.setRecordId(recordId);
This class represents a single quote of an equity It holds information of use to assess the equity va...
const AlkValue & highValue() const
Highest value of the share since the market opened that day.
const AlkValue & marketCap() const
Market capitalization.
const AlkValue & earningsPerShare() const
Earning per share.
const AlkValue & volume() const
Number of shares traded.
const QString & symbol() const
This is the symbol of the equity.
const QDateTime & dateTime() const
Date and time of the quote.
const AlkValue & changeToday() const
Today's change.
const QString & recordId() const
Internal id.
const AlkValue & ebitda() const
Earnings Before Interest, Taxes, Depreciation, and Amortization.
const AlkValue & closingValue() const
Value of the share when the market closed.
const AlkValue & lowValue() const
Lowest value of the share since the market opened that day.
const AlkValue & currentValue() const
Value of the share at the time of the quote.
const AlkValue & openingValue() const
Value of the share when the market opened.
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
QDebug operator<<(QDebug dbg, const DcrawInfoContainer &c)
void setVolume(qreal volume)
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
QString toString(QStringView format, QCalendar cal) const const