CME Class Reference

#include <CME.h>

Inheritance diagram for CME:

Inheritance graph
[legend]
Collaboration diagram for CME:

Collaboration graph
[legend]

List of all members.

Public Slots

void methodChanged (const QString &)
void startDownload ()
void fileDone (QString)
void timeoutError ()

Public Member Functions

 CME ()
virtual ~CME ()
void update ()
void parseToday ()
void parseHistory ()
void saveTodayData (QStringList &)
void parse (Setting &)
void cancelUpdate ()
void loadSettings ()
void saveSettings ()
void buildGui ()

Private Attributes

FuturesData fd
QStringList urlList
int symbolLoop
QString file2
QComboBox * symbolCombo
QComboBox * methodCombo
QStringList symbolList
bool allSymbols
int downloadIndex
bool cancelFlag
DbPlugin plug
QStringList methodList
Config config


Detailed Description

Definition at line 30 of file CME.h.


Constructor & Destructor Documentation

CME::CME (  ) 

Definition at line 37 of file CME.cpp.

References buildGui(), cancelFlag, config, downloadIndex, fd, QuotePlugin::file, fileDone(), FuturesData::getCMESymbolList(), Config::getData(), QuotePlugin::helpFile, Config::Home, loadSettings(), QuotePlugin::pluginName, QuotePlugin::signalCopyFileDone(), QuotePlugin::signalTimeout(), symbolCombo, symbolList, and timeoutError().

CME::~CME (  )  [virtual]

Definition at line 60 of file CME.cpp.

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


Member Function Documentation

void CME::update (  )  [virtual]

Reimplemented from QuotePlugin.

Definition at line 66 of file CME.cpp.

References DBBase::close(), config, downloadIndex, QuotePlugin::errorLoop, QuotePlugin::file, file2, Config::getData(), Config::Home, methodCombo, plug, startDownload(), symbolCombo, symbolLoop, and urlList.

void CME::parseToday (  ) 

Definition at line 193 of file CME.cpp.

References QuotePlugin::file, and saveTodayData().

Referenced by fileDone().

void CME::parseHistory (  ) 

Definition at line 593 of file CME.cpp.

References QuotePlugin::file, file2, parse(), QuotePlugin::printStatusLogMessage(), and symbolCombo.

Referenced by fileDone().

void CME::saveTodayData ( QStringList &  l  ) 

Definition at line 739 of file CME.cpp.

References parse(), QuotePlugin::setTFloat(), and QuotePlugin::tfloat.

Referenced by parseToday().

void CME::parse ( Setting data  ) 

Definition at line 894 of file CME.cpp.

References QuotePlugin::chartIndex, DBBase::close(), Exchange::CME, QuotePlugin::createDirectory(), DbPlugin::createNewFutures(), fd, Setting::getData(), DBIndex::getIndexItem(), DBIndexItem::getSymbol(), FuturesData::getSymbol(), DbPlugin::open(), plug, QuotePlugin::pluginName, QuotePlugin::printStatusLogMessage(), DbPlugin::setBar(), Bar::setClose(), 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::tfloat, and Bar::verify().

Referenced by parseHistory(), and saveTodayData().

void CME::cancelUpdate (  ) 

Definition at line 1018 of file CME.cpp.

References QuotePlugin::downloadComplete(), QuotePlugin::op, QuotePlugin::printStatusLogMessage(), QuotePlugin::stringCanceled, and QuotePlugin::timer.

void CME::loadSettings (  ) 

Definition at line 1055 of file CME.cpp.

References methodChanged(), methodCombo, methodList, QuotePlugin::retrySpin, symbolCombo, symbolList, and QuotePlugin::timeoutSpin.

Referenced by CME().

void CME::saveSettings (  ) 

Definition at line 1077 of file CME.cpp.

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

Referenced by ~CME().

void CME::buildGui (  ) 

Reimplemented from QuotePlugin.

Definition at line 1030 of file CME.cpp.

References QuotePlugin::baseWidget, QuotePlugin::grid, methodChanged(), methodCombo, methodList, symbolCombo, and symbolList.

Referenced by CME().

void CME::methodChanged ( const QString &  d  )  [slot]

Definition at line 1090 of file CME.cpp.

References symbolCombo.

Referenced by buildGui(), and loadSettings().

void CME::startDownload (  )  [slot]

Definition at line 119 of file CME.cpp.

References QuotePlugin::copyFile(), QuotePlugin::file, QuotePlugin::printStatusLogMessage(), symbolLoop, and urlList.

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

void CME::fileDone ( QString  d  )  [slot]

Definition at line 128 of file CME.cpp.

References QuotePlugin::downloadComplete(), methodCombo, parseHistory(), parseToday(), QuotePlugin::printStatusLogMessage(), startDownload(), QuotePlugin::stringDone, symbolLoop, and urlList.

Referenced by CME().

void CME::timeoutError (  )  [slot]

Definition at line 162 of file CME.cpp.

References QuotePlugin::downloadComplete(), QuotePlugin::errorLoop, methodCombo, QuotePlugin::printStatusLogMessage(), QuotePlugin::retrySpin, startDownload(), QuotePlugin::stringDone, symbolLoop, and urlList.

Referenced by CME().


Member Data Documentation

FuturesData CME::fd [private]

Definition at line 54 of file CME.h.

Referenced by CME(), and parse().

QStringList CME::urlList [private]

Definition at line 55 of file CME.h.

Referenced by fileDone(), startDownload(), timeoutError(), and update().

int CME::symbolLoop [private]

Definition at line 56 of file CME.h.

Referenced by fileDone(), startDownload(), timeoutError(), and update().

QString CME::file2 [private]

Definition at line 57 of file CME.h.

Referenced by parseHistory(), and update().

QComboBox* CME::symbolCombo [private]

Definition at line 58 of file CME.h.

Referenced by buildGui(), CME(), loadSettings(), methodChanged(), parseHistory(), saveSettings(), and update().

QComboBox* CME::methodCombo [private]

Definition at line 59 of file CME.h.

Referenced by buildGui(), fileDone(), loadSettings(), saveSettings(), timeoutError(), and update().

QStringList CME::symbolList [private]

Definition at line 60 of file CME.h.

Referenced by buildGui(), CME(), and loadSettings().

bool CME::allSymbols [private]

Definition at line 61 of file CME.h.

int CME::downloadIndex [private]

Definition at line 62 of file CME.h.

Referenced by CME(), and update().

bool CME::cancelFlag [private]

Definition at line 63 of file CME.h.

Referenced by CME().

DbPlugin CME::plug [private]

Definition at line 64 of file CME.h.

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

QStringList CME::methodList [private]

Definition at line 65 of file CME.h.

Referenced by buildGui(), and loadSettings().

Config CME::config [private]

Definition at line 66 of file CME.h.

Referenced by CME(), and update().


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