#include <UpgradeMessage.h>
Public Types | |
enum | UpgradeMessageVersion { V031, V034 } |
Public Slots | |
void | convert034 () |
Public Member Functions | |
UpgradeMessage (int) | |
~UpgradeMessage () | |
bool | getStatus () |
void | createPage031 () |
void | createPage034 () |
bool | createChart (QString &) |
bool | createDir (QString &) |
void | copyFiles () |
void | correctPathFiles (QStringList &) |
void | saveHeaderData (DbPlugin &db, QString &k, QString &d, QString &, DBIndexItem &) |
Private Attributes | |
QCheckBox * | check |
QProgressBar * | progBar |
DBIndex | index |
Definition at line 34 of file UpgradeMessage.h.
UpgradeMessage::UpgradeMessage | ( | int | type | ) |
Definition at line 38 of file UpgradeMessage.cpp.
References createPage031(), createPage034(), V031, and V034.
UpgradeMessage::~UpgradeMessage | ( | ) |
Definition at line 53 of file UpgradeMessage.cpp.
bool UpgradeMessage::getStatus | ( | ) |
void UpgradeMessage::createPage031 | ( | ) |
void UpgradeMessage::createPage034 | ( | ) |
Definition at line 92 of file UpgradeMessage.cpp.
References convert034(), and progBar.
Referenced by UpgradeMessage().
bool UpgradeMessage::createChart | ( | QString & | path | ) |
Definition at line 173 of file UpgradeMessage.cpp.
References DBBase::close(), index, DbPlugin::open(), saveHeaderData(), DbPlugin::setBar(), Bar::setClose(), Bar::setDate(), Bar::setHigh(), DBIndex::setIndexItem(), Bar::setLow(), Bar::setOI(), Bar::setOpen(), and Bar::setVolume().
Referenced by convert034().
bool UpgradeMessage::createDir | ( | QString & | p | ) |
void UpgradeMessage::copyFiles | ( | ) |
Definition at line 412 of file UpgradeMessage.cpp.
References Traverse::clear(), correctPathFiles(), createDir(), Traverse::File, Config::getData(), Traverse::getList(), Config::Home, and Traverse::traverse().
Referenced by convert034().
void UpgradeMessage::correctPathFiles | ( | QStringList & | list | ) |
void UpgradeMessage::saveHeaderData | ( | DbPlugin & | db, | |
QString & | k, | |||
QString & | d, | |||
QString & | sym, | |||
DBIndexItem & | item | |||
) |
Definition at line 244 of file UpgradeMessage.cpp.
References DBIndex::addIndicator(), Setting::getData(), index, Setting::parse(), Setting::remove(), DBIndexItem::setBarType(), DBIndex::setChartObject(), DBBase::setData(), Setting::setData(), DBIndex::setFundamentals(), DBIndexItem::setFuturesMonth(), DBIndexItem::setFuturesType(), DBIndexItem::setPath(), DBIndexItem::setQuotePlugin(), DBIndexItem::setSymbol(), DBIndexItem::setTitle(), and DBIndexItem::setType().
Referenced by createChart().
void UpgradeMessage::convert034 | ( | ) | [slot] |
Definition at line 134 of file UpgradeMessage.cpp.
References DBBase::close(), copyFiles(), createChart(), createDir(), Config::DataPath, Traverse::File, Config::getData(), Traverse::getList(), index, Config::IndexPath, DBBase::open(), progBar, and Traverse::traverse().
Referenced by createPage034().
QCheckBox* UpgradeMessage::check [private] |
QProgressBar* UpgradeMessage::progBar [private] |
DBIndex UpgradeMessage::index [private] |
Definition at line 63 of file UpgradeMessage.h.
Referenced by convert034(), createChart(), and saveHeaderData().