alkimia  8.0.3
Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
AlkOnlineQuoteSource Class Reference

#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)
 
AlkOnlineQuoteSourceoperator= (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
 
QString financeQuoteName () const
 
bool skipStripping () const
 
bool isGHNS ()
 
bool isReadOnly ()
 
bool isFinanceQuote () const
 
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)
 
AlkOnlineQuotesProfileprofile ()
 

Static Public Member Functions

static bool isFinanceQuote (const QString &name)
 

Protected Attributes

Privated
 

Friends

void swap (AlkOnlineQuoteSource &first, AlkOnlineQuoteSource &second)
 

Detailed Description

Author
Thomas Baumgart & Ace Jones

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.

Constructor & Destructor Documentation

◆ AlkOnlineQuoteSource() [1/4]

AlkOnlineQuoteSource::AlkOnlineQuoteSource ( )

Definition at line 195 of file alkonlinequotesource.cpp.

◆ AlkOnlineQuoteSource() [2/4]

AlkOnlineQuoteSource::AlkOnlineQuoteSource ( const QString &  name,
AlkOnlineQuotesProfile profile 
)
explicit

◆ AlkOnlineQuoteSource() [3/4]

AlkOnlineQuoteSource::AlkOnlineQuoteSource ( const QString &  name,
const QString &  url,
const QString &  sym,
const QString &  price,
const QString &  date,
const QString &  dateformat,
bool  skipStripping = false 
)
explicit

◆ ~AlkOnlineQuoteSource()

AlkOnlineQuoteSource::~AlkOnlineQuoteSource ( )

Definition at line 239 of file alkonlinequotesource.cpp.

References d.

◆ AlkOnlineQuoteSource() [4/4]

AlkOnlineQuoteSource::AlkOnlineQuoteSource ( const AlkOnlineQuoteSource other)

Definition at line 200 of file alkonlinequotesource.cpp.

Member Function Documentation

◆ date()

QString AlkOnlineQuoteSource::date ( ) const

Definition at line 274 of file alkonlinequotesource.cpp.

References d, and AlkOnlineQuoteSource::Private::m_date.

Referenced by AlkOnlineQuoteSource(), and setDate().

◆ dateformat()

QString AlkOnlineQuoteSource::dateformat ( ) const

Definition at line 279 of file alkonlinequotesource.cpp.

References d, and AlkOnlineQuoteSource::Private::m_dateformat.

Referenced by AlkOnlineQuoteSource(), and setDateformat().

◆ financeQuoteName()

QString AlkOnlineQuoteSource::financeQuoteName ( ) const

Returns the name of the "Finance::Quote" source. This function only makes sense if the current source is of the specified type.

Returns
"Finance::Quote" source name

Definition at line 291 of file alkonlinequotesource.cpp.

References d, and AlkOnlineQuoteSource::Private::m_name.

◆ ghnsWriteFileName()

QString AlkOnlineQuoteSource::ghnsWriteFileName ( )

◆ isEmpty()

bool AlkOnlineQuoteSource::isEmpty ( )

Definition at line 244 of file alkonlinequotesource.cpp.

References d, isValid(), and AlkOnlineQuoteSource::Private::m_url.

◆ isFinanceQuote() [1/2]

bool AlkOnlineQuoteSource::isFinanceQuote ( ) const

Checks whether the current source is of type "Finance::Quote"

Returns
state

Definition at line 357 of file alkonlinequotesource.cpp.

References d, fqName, and AlkOnlineQuoteSource::Private::m_name.

Referenced by AlkOnlineQuote::launch(), and AlkOnlineQuotesWidget::Private::slotLoadWidgets().

◆ isFinanceQuote() [2/2]

bool AlkOnlineQuoteSource::isFinanceQuote ( const QString &  name)
static

Checks whether the specified source name is of type "Finance::Quote"

Returns
state

Definition at line 367 of file alkonlinequotesource.cpp.

References fqName, and name().

◆ isGHNS()

bool AlkOnlineQuoteSource::isGHNS ( )

Definition at line 342 of file alkonlinequotesource.cpp.

References d, and AlkOnlineQuoteSource::Private::m_isGHNSSource.

◆ isReadOnly()

bool AlkOnlineQuoteSource::isReadOnly ( )

Definition at line 347 of file alkonlinequotesource.cpp.

References d, and AlkOnlineQuoteSource::Private::m_readOnly.

◆ isValid()

bool AlkOnlineQuoteSource::isValid ( )

◆ name()

QString AlkOnlineQuoteSource::name ( ) const

◆ operator=()

AlkOnlineQuoteSource & AlkOnlineQuoteSource::operator= ( AlkOnlineQuoteSource  other)

Definition at line 205 of file alkonlinequotesource.cpp.

References swap.

◆ price()

QString AlkOnlineQuoteSource::price ( ) const

Definition at line 269 of file alkonlinequotesource.cpp.

References d, and AlkOnlineQuoteSource::Private::m_price.

Referenced by AlkOnlineQuoteSource(), and setPrice().

◆ profile()

AlkOnlineQuotesProfile * AlkOnlineQuoteSource::profile ( )

Definition at line 383 of file alkonlinequotesource.cpp.

References d, and AlkOnlineQuoteSource::Private::m_profile.

Referenced by AlkOnlineQuoteSource(), and setProfile().

◆ read()

bool AlkOnlineQuoteSource::read ( )

◆ remove()

void AlkOnlineQuoteSource::remove ( )

◆ rename()

void AlkOnlineQuoteSource::rename ( const QString &  name)

◆ setDate()

void AlkOnlineQuoteSource::setDate ( const QString &  date)

Definition at line 321 of file alkonlinequotesource.cpp.

References d, date(), and AlkOnlineQuoteSource::Private::m_date.

◆ setDateformat()

void AlkOnlineQuoteSource::setDateformat ( const QString &  dateformat)

◆ setGHNS()

void AlkOnlineQuoteSource::setGHNS ( bool  state)

◆ setName()

void AlkOnlineQuoteSource::setName ( const QString &  name)

◆ setPrice()

void AlkOnlineQuoteSource::setPrice ( const QString &  price)

Definition at line 316 of file alkonlinequotesource.cpp.

References d, AlkOnlineQuoteSource::Private::m_price, and price().

◆ setProfile()

void AlkOnlineQuoteSource::setProfile ( AlkOnlineQuotesProfile profile)

◆ setSkipStripping()

void AlkOnlineQuoteSource::setSkipStripping ( bool  state)

Definition at line 331 of file alkonlinequotesource.cpp.

References d, and AlkOnlineQuoteSource::Private::m_skipStripping.

◆ setSym()

void AlkOnlineQuoteSource::setSym ( const QString &  symbol)

Definition at line 311 of file alkonlinequotesource.cpp.

References d, and AlkOnlineQuoteSource::Private::m_sym.

◆ setUrl()

void AlkOnlineQuoteSource::setUrl ( const QString &  url)

Definition at line 306 of file alkonlinequotesource.cpp.

References d, AlkOnlineQuoteSource::Private::m_url, and url().

◆ skipStripping()

bool AlkOnlineQuoteSource::skipStripping ( ) const

Definition at line 296 of file alkonlinequotesource.cpp.

References d, and AlkOnlineQuoteSource::Private::m_skipStripping.

Referenced by AlkOnlineQuoteSource().

◆ sym()

QString AlkOnlineQuoteSource::sym ( ) const

Definition at line 264 of file alkonlinequotesource.cpp.

References d, and AlkOnlineQuoteSource::Private::m_sym.

Referenced by AlkOnlineQuoteSource().

◆ url()

QString AlkOnlineQuoteSource::url ( ) const

Definition at line 259 of file alkonlinequotesource.cpp.

References d, and AlkOnlineQuoteSource::Private::m_url.

Referenced by AlkOnlineQuoteSource(), and setUrl().

◆ write()

bool AlkOnlineQuoteSource::write ( )

Friends And Related Function Documentation

◆ swap

void swap ( AlkOnlineQuoteSource first,
AlkOnlineQuoteSource second 
)
friend

Definition at line 91 of file alkonlinequotesource.h.

Referenced by operator=().

Member Data Documentation

◆ d

Private* AlkOnlineQuoteSource::d
protected

The documentation for this class was generated from the following files: