NYBOT Class Reference

#include <NYBOT.h>

Inheritance diagram for NYBOT:

Inheritance graph
[legend]
Collaboration diagram for NYBOT:

Collaboration graph
[legend]

List of all members.

Public Slots

void parse ()
void fileDone (bool)
void timeoutError ()

Public Member Functions

 NYBOT ()
virtual ~NYBOT ()
void update ()
void cancelUpdate ()
void loadSettings ()
void saveSettings ()
void buildGui ()

Private Attributes

FuturesData fd
bool cancelFlag
DbPlugin plug
Config config
QDateEdit * date
QString url
QString file


Detailed Description

Definition at line 28 of file NYBOT.h.


Constructor & Destructor Documentation

NYBOT::NYBOT (  ) 

Definition at line 39 of file NYBOT.cpp.

References buildGui(), cancelFlag, fileDone(), QuotePlugin::helpFile, loadSettings(), QuotePlugin::pluginName, QuotePlugin::signalGetFileDone(), QuotePlugin::signalTimeout(), and timeoutError().

NYBOT::~NYBOT (  )  [virtual]

Definition at line 54 of file NYBOT.cpp.

References DBBase::close(), plug, and saveSettings().


Member Function Documentation

void NYBOT::update (  )  [virtual]

Reimplemented from QuotePlugin.

Definition at line 83 of file NYBOT.cpp.

References DBBase::close(), config, date, QuotePlugin::errorLoop, file, Config::getData(), QuotePlugin::getFile(), Config::Home, plug, and url.

void NYBOT::cancelUpdate (  ) 

Definition at line 390 of file NYBOT.cpp.

References cancelFlag.

void NYBOT::loadSettings (  ) 

Definition at line 395 of file NYBOT.cpp.

References QuotePlugin::retrySpin, and QuotePlugin::timeoutSpin.

Referenced by NYBOT().

void NYBOT::saveSettings (  ) 

Definition at line 409 of file NYBOT.cpp.

References QuotePlugin::retrySpin, and QuotePlugin::timeoutSpin.

Referenced by ~NYBOT().

void NYBOT::buildGui (  ) 

Reimplemented from QuotePlugin.

Definition at line 60 of file NYBOT.cpp.

References QuotePlugin::baseWidget, date, and QuotePlugin::grid.

Referenced by NYBOT().

void NYBOT::parse (  )  [slot]

Definition at line 144 of file NYBOT.cpp.

References cancelFlag, QuotePlugin::chartIndex, DBBase::close(), QuotePlugin::createDirectory(), DbPlugin::createNewFutures(), QuotePlugin::data, date, QuotePlugin::downloadComplete(), fd, file, Bar::getClose(), Setting::getData(), FuturesData::getExchange(), Bar::getHigh(), DBIndex::getIndexItem(), Bar::getLow(), Bar::getOpen(), DBIndexItem::getSymbol(), FuturesData::getSymbol(), Exchange::NYBOT, DbPlugin::open(), plug, QuotePlugin::pluginName, QuotePlugin::printStatusLogMessage(), DbPlugin::setBar(), Bar::setClose(), Setting::setData(), Bar::setDate(), DBIndexItem::setExchange(), Bar::setHigh(), DBIndex::setIndexItem(), Bar::setLow(), Bar::setOI(), Bar::setOpen(), DBIndexItem::setQuotePlugin(), FuturesData::setSymbol(), QuotePlugin::setTFloat(), Bar::setVolume(), QuotePlugin::signalWakeup(), QuotePlugin::stripJunk(), QuotePlugin::tfloat, and Bar::verify().

Referenced by fileDone().

void NYBOT::fileDone ( bool  d  )  [slot]

Definition at line 100 of file NYBOT.cpp.

References QuotePlugin::data, QuotePlugin::downloadComplete(), file, parse(), and QuotePlugin::printStatusLogMessage().

Referenced by NYBOT().

void NYBOT::timeoutError (  )  [slot]

Definition at line 126 of file NYBOT.cpp.

References QuotePlugin::downloadComplete(), QuotePlugin::errorLoop, QuotePlugin::getFile(), QuotePlugin::printStatusLogMessage(), QuotePlugin::retrySpin, and url.

Referenced by NYBOT().


Member Data Documentation

FuturesData NYBOT::fd [private]

Definition at line 47 of file NYBOT.h.

Referenced by parse().

bool NYBOT::cancelFlag [private]

Definition at line 48 of file NYBOT.h.

Referenced by cancelUpdate(), NYBOT(), and parse().

DbPlugin NYBOT::plug [private]

Definition at line 49 of file NYBOT.h.

Referenced by parse(), update(), and ~NYBOT().

Config NYBOT::config [private]

Definition at line 50 of file NYBOT.h.

Referenced by update().

QDateEdit* NYBOT::date [private]

Definition at line 51 of file NYBOT.h.

Referenced by buildGui(), parse(), and update().

QString NYBOT::url [private]

Definition at line 52 of file NYBOT.h.

Referenced by timeoutError(), and update().

QString NYBOT::file [private]

Reimplemented from QuotePlugin.

Definition at line 53 of file NYBOT.h.

Referenced by fileDone(), parse(), and update().


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