|
alkimia
8.0.3
|
#include <alkonlinequote.h>
Classes | |
| class | Errors |
| class | Private |
Public Slots | |
| bool | launch (const QString &_symbol, const QString &_id, const QString &_source=QString()) |
| const Errors & | errors () |
Signals | |
| void | quote (QString id, QString symbol, QDate date, double price) |
| void | failed (QString id, QString symbol) |
| void | status (QString s) |
| void | error (QString s) |
Public Member Functions | |
| AlkOnlineQuote (AlkOnlineQuotesProfile *profile=0, QObject *=0) | |
| ~AlkOnlineQuote () | |
| AlkOnlineQuotesProfile * | profile () |
| void | setProfile (AlkOnlineQuotesProfile *profile) |
| void | setAcceptLanguage (const QString &language) |
Private Attributes | |
| Private *const | d |
Retrieves a price quote from a web-based quote source
Definition at line 37 of file alkonlinequote.h.
|
explicit |
Definition at line 515 of file alkonlinequote.cpp.
References d, AlkOnlineQuote::Private::m_ownProfile, AlkOnlineQuote::Private::m_profile, and profile().
| AlkOnlineQuote::~AlkOnlineQuote | ( | ) |
Definition at line 527 of file alkonlinequote.cpp.
References d.
|
signal |
|
slot |
If launch(), launchNative() or launchFinanceQuote() returns false, this method can be used to get details about the errors that occurred.
Definition at line 575 of file alkonlinequote.cpp.
References d, and AlkOnlineQuote::Private::m_errors.
Referenced by AlkOnlineQuotesWidget::Private::slotCheckEntry().
|
signal |
|
slot |
This launches a web-based quote update for the given _symbol. When the quote is received back from the web source, it will be emitted on the 'quote' signal.
| _symbol | the trading symbol of the stock to fetch a price for |
| _id | an arbitrary identifier, which will be emitted in the quote signal when a price is sent back. |
| _source | the source of the quote (must be a valid value returned by quoteSources(). Send QString() to use the default source. |
Definition at line 561 of file alkonlinequote.cpp.
References d, AlkOnlineQuoteSource::isFinanceQuote(), AlkOnlineQuote::Private::launchFinanceQuote(), AlkOnlineQuote::Private::launchNative(), AlkOnlineQuote::Private::launchWebKitCssSelector(), AlkOnlineQuote::Private::launchWebKitHtmlParser(), AlkOnlineQuote::Private::m_profile, AlkOnlineQuotesProfile::Script, and AlkOnlineQuotesProfile::type().
Referenced by AlkOnlineQuotesWidget::Private::slotCheckEntry().
| AlkOnlineQuotesProfile * AlkOnlineQuote::profile | ( | ) |
Definition at line 532 of file alkonlinequote.cpp.
References d, and AlkOnlineQuote::Private::m_profile.
Referenced by AlkOnlineQuote(), and setProfile().
|
signal |
Referenced by AlkOnlineQuote::Private::launchNative().
| void AlkOnlineQuote::setAcceptLanguage | ( | const QString & | language | ) |
Set accepted language the online quote should be returned for
| language | accepted language to set |
Definition at line 556 of file alkonlinequote.cpp.
References d, and AlkOnlineQuote::Private::m_acceptLanguage.
Referenced by AlkOnlineQuotesWidget::Private::slotCheckEntry().
| void AlkOnlineQuote::setProfile | ( | AlkOnlineQuotesProfile * | profile | ) |
Definition at line 537 of file alkonlinequote.cpp.
References d, AlkOnlineQuote::Private::m_ownProfile, AlkOnlineQuote::Private::m_profile, and profile().
|
signal |
|
private |
Definition at line 121 of file alkonlinequote.h.
Referenced by AlkOnlineQuote(), errors(), launch(), profile(), setAcceptLanguage(), setProfile(), and ~AlkOnlineQuote().