alkimia
8.0.2
|
#include <alkonlinequotesource.h>
Classes | |
class | Private |
Public Member Functions | |
AlkOnlineQuoteSource () | |
AlkOnlineQuoteSource (const QString &name, AlkOnlineQuotesProfile *profile) | |
AlkOnlineQuoteSource (const QString &name, const QString &url, const QString &sym, const QString &price, const QString &date, const QString &dateformat, bool skipStripping=false) | |
~AlkOnlineQuoteSource () | |
AlkOnlineQuoteSource (const AlkOnlineQuoteSource &other) | |
AlkOnlineQuoteSource & | operator= (AlkOnlineQuoteSource other) |
bool | isEmpty () |
bool | isValid () |
bool | read () |
bool | write () |
void | rename (const QString &name) |
void | remove () |
QString | name () const |
QString | url () const |
QString | sym () const |
QString | price () const |
QString | date () const |
QString | dateformat () const |
bool | skipStripping () const |
bool | isGHNS () |
bool | isReadOnly () |
void | setName (const QString &name) |
void | setUrl (const QString &url) |
void | setSym (const QString &symbol) |
void | setPrice (const QString &price) |
void | setDate (const QString &date) |
void | setDateformat (const QString &dateformat) |
void | setSkipStripping (bool state) |
void | setGHNS (bool state) |
QString | ghnsWriteFileName () |
void | setProfile (AlkOnlineQuotesProfile *profile) |
AlkOnlineQuotesProfile * | profile () |
Protected Attributes | |
Private * | d |
Friends | |
void | swap (AlkOnlineQuoteSource &first, AlkOnlineQuoteSource &second) |
This is a helper class to store information about an online source for stock prices or currency exchange rates.
Definition at line 35 of file alkonlinequotesource.h.
AlkOnlineQuoteSource::AlkOnlineQuoteSource | ( | ) |
Definition at line 190 of file alkonlinequotesource.cpp.
|
explicit |
Definition at line 222 of file alkonlinequotesource.cpp.
References d, AlkOnlineQuotesProfile::defaultQuoteSources(), AlkOnlineQuoteSource::Private::m_name, AlkOnlineQuoteSource::Private::m_profile, name(), AlkOnlineQuotesProfile::None, profile(), read(), and AlkOnlineQuotesProfile::type().
|
explicit |
Definition at line 206 of file alkonlinequotesource.cpp.
References d, date(), dateformat(), AlkOnlineQuoteSource::Private::m_date, AlkOnlineQuoteSource::Private::m_dateformat, AlkOnlineQuoteSource::Private::m_isGHNSSource, AlkOnlineQuoteSource::Private::m_name, AlkOnlineQuoteSource::Private::m_price, AlkOnlineQuoteSource::Private::m_skipStripping, AlkOnlineQuoteSource::Private::m_sym, AlkOnlineQuoteSource::Private::m_url, name(), price(), skipStripping(), sym(), and url().
AlkOnlineQuoteSource::~AlkOnlineQuoteSource | ( | ) |
Definition at line 234 of file alkonlinequotesource.cpp.
References d.
AlkOnlineQuoteSource::AlkOnlineQuoteSource | ( | const AlkOnlineQuoteSource & | other | ) |
Definition at line 195 of file alkonlinequotesource.cpp.
QString AlkOnlineQuoteSource::date | ( | ) | const |
Definition at line 269 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_date.
Referenced by AlkOnlineQuoteSource(), and setDate().
QString AlkOnlineQuoteSource::dateformat | ( | ) | const |
Definition at line 274 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_dateformat.
Referenced by AlkOnlineQuoteSource(), and setDateformat().
QString AlkOnlineQuoteSource::ghnsWriteFileName | ( | ) |
Definition at line 335 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::ghnsWriteFilePath().
bool AlkOnlineQuoteSource::isEmpty | ( | ) |
Definition at line 239 of file alkonlinequotesource.cpp.
References d, isValid(), and AlkOnlineQuoteSource::Private::m_url.
bool AlkOnlineQuoteSource::isGHNS | ( | ) |
Definition at line 325 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_isGHNSSource.
bool AlkOnlineQuoteSource::isReadOnly | ( | ) |
Definition at line 330 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_readOnly.
bool AlkOnlineQuoteSource::isValid | ( | ) |
Definition at line 244 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_name.
Referenced by isEmpty(), and AlkOnlineQuotesWidget::Private::loadQuotesList().
QString AlkOnlineQuoteSource::name | ( | ) | const |
Definition at line 249 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_name.
Referenced by AlkOnlineQuoteSource(), rename(), setName(), and AlkOnlineQuotesWidget::Private::slotDuplicateEntry().
AlkOnlineQuoteSource & AlkOnlineQuoteSource::operator= | ( | AlkOnlineQuoteSource | other | ) |
Definition at line 200 of file alkonlinequotesource.cpp.
QString AlkOnlineQuoteSource::price | ( | ) | const |
Definition at line 264 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_price.
Referenced by AlkOnlineQuoteSource(), and setPrice().
AlkOnlineQuotesProfile * AlkOnlineQuoteSource::profile | ( | ) |
Definition at line 346 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_profile.
Referenced by AlkOnlineQuoteSource(), and setProfile().
bool AlkOnlineQuoteSource::read | ( | ) |
Definition at line 351 of file alkonlinequotesource.cpp.
References d, AlkOnlineQuotesProfile::hasGHNSSupport(), AlkOnlineQuoteSource::Private::m_profile, AlkOnlineQuoteSource::Private::read(), and AlkOnlineQuoteSource::Private::readFromGHNSFile().
Referenced by AlkOnlineQuoteSource().
void AlkOnlineQuoteSource::remove | ( | ) |
Definition at line 391 of file alkonlinequotesource.cpp.
References d, AlkOnlineQuotesProfile::hasGHNSSupport(), AlkOnlineQuoteSource::Private::m_isGHNSSource, AlkOnlineQuoteSource::Private::m_profile, AlkOnlineQuotesProfile::None, AlkOnlineQuoteSource::Private::remove(), AlkOnlineQuoteSource::Private::removeGHNSFile(), and AlkOnlineQuotesProfile::type().
Referenced by rename(), and AlkOnlineQuotesWidget::resetConfig().
void AlkOnlineQuoteSource::rename | ( | const QString & | name | ) |
Definition at line 381 of file alkonlinequotesource.cpp.
References d, AlkOnlineQuoteSource::Private::m_name, AlkOnlineQuoteSource::Private::m_profile, name(), AlkOnlineQuotesProfile::None, remove(), AlkOnlineQuotesProfile::type(), and write().
void AlkOnlineQuoteSource::setDate | ( | const QString & | date | ) |
Definition at line 304 of file alkonlinequotesource.cpp.
References d, date(), and AlkOnlineQuoteSource::Private::m_date.
void AlkOnlineQuoteSource::setDateformat | ( | const QString & | dateformat | ) |
Definition at line 309 of file alkonlinequotesource.cpp.
References d, dateformat(), and AlkOnlineQuoteSource::Private::m_dateformat.
void AlkOnlineQuoteSource::setGHNS | ( | bool | state | ) |
Definition at line 319 of file alkonlinequotesource.cpp.
References d, AlkOnlineQuoteSource::Private::m_isGHNSSource, and AlkOnlineQuoteSource::Private::m_storageChanged.
Referenced by AlkOnlineQuotesWidget::Private::slotDuplicateEntry().
void AlkOnlineQuoteSource::setName | ( | const QString & | name | ) |
Definition at line 284 of file alkonlinequotesource.cpp.
References d, AlkOnlineQuoteSource::Private::m_name, and name().
Referenced by AlkOnlineQuotesWidget::Private::slotDuplicateEntry().
void AlkOnlineQuoteSource::setPrice | ( | const QString & | price | ) |
Definition at line 299 of file alkonlinequotesource.cpp.
References d, AlkOnlineQuoteSource::Private::m_price, and price().
void AlkOnlineQuoteSource::setProfile | ( | AlkOnlineQuotesProfile * | profile | ) |
Definition at line 340 of file alkonlinequotesource.cpp.
References d, AlkOnlineQuoteSource::Private::m_profile, AlkOnlineQuotesProfile::name(), and profile().
void AlkOnlineQuoteSource::setSkipStripping | ( | bool | state | ) |
Definition at line 314 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_skipStripping.
void AlkOnlineQuoteSource::setSym | ( | const QString & | symbol | ) |
Definition at line 294 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_sym.
void AlkOnlineQuoteSource::setUrl | ( | const QString & | url | ) |
Definition at line 289 of file alkonlinequotesource.cpp.
References d, AlkOnlineQuoteSource::Private::m_url, and url().
bool AlkOnlineQuoteSource::skipStripping | ( | ) | const |
Definition at line 279 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_skipStripping.
Referenced by AlkOnlineQuoteSource().
QString AlkOnlineQuoteSource::sym | ( | ) | const |
Definition at line 259 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_sym.
Referenced by AlkOnlineQuoteSource().
QString AlkOnlineQuoteSource::url | ( | ) | const |
Definition at line 254 of file alkonlinequotesource.cpp.
References d, and AlkOnlineQuoteSource::Private::m_url.
Referenced by AlkOnlineQuoteSource(), and setUrl().
bool AlkOnlineQuoteSource::write | ( | ) |
Definition at line 362 of file alkonlinequotesource.cpp.
References d, AlkOnlineQuotesProfile::hasGHNSSupport(), AlkOnlineQuoteSource::Private::m_isGHNSSource, AlkOnlineQuoteSource::Private::m_profile, AlkOnlineQuoteSource::Private::m_storageChanged, AlkOnlineQuoteSource::Private::remove(), AlkOnlineQuoteSource::Private::removeGHNSFile(), AlkOnlineQuoteSource::Private::write(), and AlkOnlineQuoteSource::Private::writeToGHNSFile().
Referenced by rename(), AlkOnlineQuotesWidget::Private::slotDuplicateEntry(), and AlkOnlineQuotesWidget::Private::slotNewEntry().
|
friend |
Definition at line 87 of file alkonlinequotesource.h.
|
protected |
Definition at line 83 of file alkonlinequotesource.h.
Referenced by AlkOnlineQuoteSource(), date(), dateformat(), ghnsWriteFileName(), isEmpty(), isGHNS(), isReadOnly(), isValid(), name(), price(), profile(), read(), remove(), rename(), setDate(), setDateformat(), setGHNS(), setName(), setPrice(), setProfile(), setSkipStripping(), setSym(), setUrl(), skipStripping(), swap(), sym(), url(), write(), and ~AlkOnlineQuoteSource().