UpgradeMessage Class Reference

#include <UpgradeMessage.h>

Collaboration diagram for UpgradeMessage:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 34 of file UpgradeMessage.h.


Member Enumeration Documentation

enum UpgradeMessage::UpgradeMessageVersion

Enumerator:
V031 
V034 

Definition at line 40 of file UpgradeMessage.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

bool UpgradeMessage::getStatus (  ) 

Definition at line 87 of file UpgradeMessage.cpp.

References check.

void UpgradeMessage::createPage031 (  ) 

Definition at line 57 of file UpgradeMessage.cpp.

References check.

Referenced by UpgradeMessage().

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  ) 

Definition at line 382 of file UpgradeMessage.cpp.

Referenced by convert034(), and copyFiles().

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  ) 

Definition at line 506 of file UpgradeMessage.cpp.

Referenced by copyFiles().

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().


Member Data Documentation

QCheckBox* UpgradeMessage::check [private]

Definition at line 61 of file UpgradeMessage.h.

Referenced by createPage031(), and getStatus().

QProgressBar* UpgradeMessage::progBar [private]

Definition at line 62 of file UpgradeMessage.h.

Referenced by convert034(), and createPage034().

DBIndex UpgradeMessage::index [private]

Definition at line 63 of file UpgradeMessage.h.

Referenced by convert034(), createChart(), and saveHeaderData().


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