CSV Class Reference

#include <CSV.h>

Inheritance diagram for CSV:

Inheritance graph
[legend]
Collaboration diagram for CSV:

Collaboration graph
[legend]

List of all members.

Public Slots

void parse ()
void reloadTimerChanged (int)
void dateRangeChanged (bool)
void newRule ()
void editRule ()
void deleteRule ()
void help ()

Public Member Functions

 CSV ()
virtual ~CSV ()
void update ()
void setDelimiter (QString &)
void getDate (QString &, QString &, Setting &, QDate &)
void getTime (QString &, QString &)
bool openDb (QString &, QString &, QString &, bool)
void loadSettings ()
void saveSettings ()
void getRule (Setting &)
void cancelUpdate ()
void createMainPage ()
void updateRules ()

Private Attributes

Config config
QString delim
FuturesData fd
DbPlugin db
QString symbolOveride
QString futuresSymbol
QString futuresMonth
bool cancelFlag
QString lastPath
QTimer * reloadTimer
QString ruleDir
FileButtonfile
QLineEdit * symbol
QComboBox * ruleCombo
QDateEdit * sdate
QDateEdit * edate
QCheckBox * dateRange
QSpinBox * minutes


Detailed Description

Definition at line 39 of file CSV.h.


Constructor & Destructor Documentation

CSV::CSV (  ) 

Definition at line 41 of file CSV.cpp.

References cancelFlag, config, createMainPage(), delim, Config::getData(), help(), QuotePlugin::helpFile, loadSettings(), parse(), QuotePlugin::pluginName, Config::QuotePluginStorage, reloadTimer, ruleDir, and updateRules().

CSV::~CSV (  )  [virtual]

Definition at line 73 of file CSV.cpp.

References saveSettings().


Member Function Documentation

void CSV::update (  )  [virtual]

Reimplemented from QuotePlugin.

Definition at line 78 of file CSV.cpp.

References minutes, parse(), and reloadTimer.

void CSV::setDelimiter ( QString &  d  ) 

Definition at line 497 of file CSV.cpp.

References delim.

Referenced by parse().

void CSV::getDate ( QString &  k,
QString &  d,
Setting r,
QDate &  date 
)

Definition at line 552 of file CSV.cpp.

References getTime(), and Setting::setData().

Referenced by parse().

void CSV::getTime ( QString &  d,
QString &  time 
)

Definition at line 524 of file CSV.cpp.

Referenced by getDate(), and parse().

bool CSV::openDb ( QString &  path,
QString &  symbol,
QString &  type,
bool  tickFlag 
)

Definition at line 721 of file CSV.cpp.

References QuotePlugin::chartIndex, DBBase::close(), DbPlugin::createNewFutures(), DbPlugin::createNewStock(), db, DbPlugin::Futures1, DBIndex::getIndexItem(), DBIndexItem::getQuotePlugin(), DBIndexItem::getSymbol(), DbPlugin::open(), QuotePlugin::pluginName, QuotePlugin::printStatusLogMessage(), DBIndexItem::setBarType(), DBIndex::setIndexItem(), DBIndexItem::setQuotePlugin(), DBIndexItem::setSymbol(), and DbPlugin::setType().

Referenced by parse().

void CSV::loadSettings (  ) 

Definition at line 782 of file CSV.cpp.

References dateRange, dateRangeChanged(), file, lastPath, minutes, ruleCombo, and FileButton::setFile().

Referenced by CSV().

void CSV::saveSettings (  ) 

Definition at line 805 of file CSV.cpp.

References dateRange, file, FileButton::getFile(), lastPath, minutes, and ruleCombo.

Referenced by ~CSV().

void CSV::getRule ( Setting set  ) 

Definition at line 823 of file CSV.cpp.

References ruleCombo, and ruleDir.

Referenced by parse().

void CSV::cancelUpdate (  ) 

Definition at line 851 of file CSV.cpp.

References cancelFlag.

void CSV::createMainPage (  ) 

Definition at line 856 of file CSV.cpp.

References Toolbar::addButton(), QuotePlugin::baseWidget, dateRange, dateRangeChanged(), deleteRule(), edate, editRule(), file, Toolbar::getButton(), QuotePlugin::grid, lastPath, minutes, newRule(), reloadTimerChanged(), ruleCombo, sdate, symbol, QuotePlugin::toolbar, and updateRules().

Referenced by CSV().

void CSV::updateRules (  ) 

Definition at line 1076 of file CSV.cpp.

References ruleCombo, and ruleDir.

Referenced by createMainPage(), CSV(), deleteRule(), and newRule().

void CSV::parse (  )  [slot]

Definition at line 85 of file CSV.cpp.

References cancelFlag, QuotePlugin::chartIndex, DBBase::close(), Config::closePlugin(), config, Setting::count(), QuotePlugin::createDirectory(), dateRange, db, delim, QuotePlugin::downloadComplete(), edate, file, Setting::getData(), getDate(), Setting::getDouble(), FileButton::getFile(), DBIndex::getIndexItem(), Setting::getInt(), getRule(), getTime(), openDb(), QuotePlugin::printStatusLogMessage(), QuotePlugin::progressBar, sdate, DbPlugin::setBar(), Bar::setClose(), Setting::setData(), Bar::setDate(), setDelimiter(), Bar::setHigh(), DBIndex::setIndexItem(), Bar::setLow(), Bar::setOI(), Bar::setOpen(), QuotePlugin::setTFloat(), Bar::setTickFlag(), DBIndexItem::setTitle(), Bar::setVolume(), QuotePlugin::signalWakeup(), QuotePlugin::stringCanceled, QuotePlugin::stringDone, QuotePlugin::stripJunk(), symbol, symbolOveride, and QuotePlugin::tfloat.

Referenced by CSV(), and update().

void CSV::reloadTimerChanged ( int  t  )  [slot]

Definition at line 1053 of file CSV.cpp.

References QuotePlugin::printStatusLogMessage(), and reloadTimer.

Referenced by createMainPage().

void CSV::dateRangeChanged ( bool  d  )  [slot]

Definition at line 1070 of file CSV.cpp.

References edate, and sdate.

Referenced by createMainPage(), and loadSettings().

void CSV::newRule (  )  [slot]

Definition at line 938 of file CSV.cpp.

References ruleDir, and updateRules().

Referenced by createMainPage().

void CSV::editRule (  )  [slot]

Definition at line 980 of file CSV.cpp.

References ruleDir.

Referenced by createMainPage().

void CSV::deleteRule (  )  [slot]

Definition at line 1010 of file CSV.cpp.

References ruleDir, and updateRules().

Referenced by createMainPage().

void CSV::help (  )  [slot]

Reimplemented from QuotePlugin.

Definition at line 1098 of file CSV.cpp.

References QuotePlugin::helpFile.

Referenced by CSV().


Member Data Documentation

Config CSV::config [private]

Definition at line 68 of file CSV.h.

Referenced by CSV(), and parse().

QString CSV::delim [private]

Definition at line 69 of file CSV.h.

Referenced by CSV(), parse(), and setDelimiter().

FuturesData CSV::fd [private]

Definition at line 70 of file CSV.h.

DbPlugin CSV::db [private]

Definition at line 71 of file CSV.h.

Referenced by openDb(), and parse().

QString CSV::symbolOveride [private]

Definition at line 72 of file CSV.h.

Referenced by parse().

QString CSV::futuresSymbol [private]

Definition at line 73 of file CSV.h.

QString CSV::futuresMonth [private]

Definition at line 74 of file CSV.h.

bool CSV::cancelFlag [private]

Definition at line 75 of file CSV.h.

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

QString CSV::lastPath [private]

Definition at line 76 of file CSV.h.

Referenced by createMainPage(), loadSettings(), and saveSettings().

QTimer* CSV::reloadTimer [private]

Definition at line 77 of file CSV.h.

Referenced by CSV(), reloadTimerChanged(), and update().

QString CSV::ruleDir [private]

Definition at line 78 of file CSV.h.

Referenced by CSV(), deleteRule(), editRule(), getRule(), newRule(), and updateRules().

FileButton* CSV::file [private]

Reimplemented from QuotePlugin.

Definition at line 79 of file CSV.h.

Referenced by createMainPage(), loadSettings(), parse(), and saveSettings().

QLineEdit* CSV::symbol [private]

Definition at line 80 of file CSV.h.

Referenced by createMainPage(), and parse().

QComboBox* CSV::ruleCombo [private]

Definition at line 81 of file CSV.h.

Referenced by createMainPage(), getRule(), loadSettings(), saveSettings(), and updateRules().

QDateEdit* CSV::sdate [private]

Definition at line 82 of file CSV.h.

Referenced by createMainPage(), dateRangeChanged(), and parse().

QDateEdit* CSV::edate [private]

Definition at line 83 of file CSV.h.

Referenced by createMainPage(), dateRangeChanged(), and parse().

QCheckBox* CSV::dateRange [private]

Definition at line 84 of file CSV.h.

Referenced by createMainPage(), loadSettings(), parse(), and saveSettings().

QSpinBox* CSV::minutes [private]

Definition at line 85 of file CSV.h.

Referenced by createMainPage(), loadSettings(), saveSettings(), and update().


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