#include <CME.h>
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 |
Definition at line 30 of file CME.h.
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] |
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().
FuturesData CME::fd [private] |
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] |
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] |
bool CME::allSymbols [private] |
int CME::downloadIndex [private] |
bool CME::cancelFlag [private] |
QStringList CME::methodList [private] |
Config CME::config [private] |