DBIndex Class Reference

#include <DBIndex.h>

Inheritance diagram for DBIndex:

Inheritance graph
[legend]
Collaboration diagram for DBIndex:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DBIndex ()
 ~DBIndex ()
void setIndexItem (QString &, DBIndexItem &)
void getIndexItem (QString &, DBIndexItem &)
void deleteIndicator (QString &, QString &)
void addIndicator (QString &, QString &)
void getIndicators (QString &, QString &)
void deleteChart (QString &)
void getChartObjects (QString &, QStringList &)
void setChartObject (QString &, QString &, Setting &)
void deleteChartObject (QString &, QString &)
void deleteAllChartObjects (QString &k)
void getNewChartObjectName (QString &k, QString &name)
void setFundamentals (QString &, QString &)
void getFundamentals (QString &, QString &)


Detailed Description

Definition at line 31 of file DBIndex.h.


Constructor & Destructor Documentation

DBIndex::DBIndex (  ) 

Definition at line 28 of file DBIndex.cpp.

DBIndex::~DBIndex (  ) 

Definition at line 32 of file DBIndex.cpp.

References DBBase::close().


Member Function Documentation

void DBIndex::setIndexItem ( QString &  k,
DBIndexItem d 
)

Definition at line 37 of file DBIndex.cpp.

References DBBase::db, DBBase::flush(), and DBIndexItem::getItem().

Referenced by Yahoo::createAutoHistoryUrls(), UpgradeMessage::createChart(), DbPlugin::createNewCC(), DbPlugin::createNewFutures(), DbPlugin::createNewIndex(), DbPlugin::createNewSpread(), DbPlugin::createNewStock(), DbPlugin::indexPref(), Yahoo::newStock(), DbPlugin::open(), CSV::openDb(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseFundamental(), Yahoo::parseHistory(), Yahoo::parseQuote(), StocksDialog::saveChart(), and FuturesDialog::saveChart().

void DBIndex::getIndexItem ( QString &  k,
DBIndexItem d 
)

Definition at line 57 of file DBIndex.cpp.

References DBBase::db, and DBIndexItem::setItem().

Referenced by Yahoo::createAutoHistoryUrls(), StocksDialog::createDetailsPage(), FuturesDialog::createDetailsPage(), DbPlugin::createNewCC(), DbPlugin::createNewFutures(), DbPlugin::createNewIndex(), DbPlugin::createNewSpread(), DbPlugin::createNewStock(), DbPlugin::indexPref(), QtstalkerApp::loadChart(), Tester::loadRule(), PortfolioDialog::modifyItem(), Yahoo::newStock(), DbPlugin::open(), CSV::openDb(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseFundamental(), Yahoo::parseHistory(), Yahoo::parseQuote(), StocksDialog::saveChart(), FuturesDialog::saveChart(), IndicatorPlot::slotNewChartObject(), Tester::test(), and PortfolioDialog::updatePortfolioItems().

void DBIndex::deleteIndicator ( QString &  k,
QString &  d 
)

Definition at line 77 of file DBIndex.cpp.

References DBBase::close(), DBBase::getData(), Config::getData(), Config::LocalIndicatorsPath, DBBase::open(), and DBBase::setData().

Referenced by IndicatorPage::deleteIndicator().

void DBIndex::addIndicator ( QString &  k,
QString &  d 
)

Definition at line 108 of file DBIndex.cpp.

References DBBase::close(), DBBase::getData(), Config::getData(), Config::LocalIndicatorsPath, DBBase::open(), and DBBase::setData().

Referenced by IndicatorPage::addLocalIndicator(), and UpgradeMessage::saveHeaderData().

void DBIndex::getIndicators ( QString &  k,
QString &  d 
)

Definition at line 134 of file DBIndex.cpp.

References DBBase::close(), DBBase::getData(), Config::getData(), Config::LocalIndicatorsPath, and DBBase::open().

Referenced by QtstalkerApp::loadChart().

void DBIndex::deleteChart ( QString &  d  ) 

Definition at line 150 of file DBIndex.cpp.

References DBBase::close(), deleteAllChartObjects(), DBBase::deleteData(), Config::FundamentalsPath, Config::getData(), Config::LocalIndicatorsPath, and DBBase::open().

Referenced by ChartPage::deleteChart(), and ChartPage::deleteChartQuick().

void DBIndex::getChartObjects ( QString &  k,
QStringList &  d 
)

Definition at line 180 of file DBIndex.cpp.

References DBBase::close(), Config::COPath, DBBase::getData(), Config::getData(), and DBBase::open().

Referenced by IndicatorPage::deleteIndicator(), QtstalkerApp::loadChart(), and StocksDialog::split().

void DBIndex::setChartObject ( QString &  k,
QString &  d,
Setting set 
)

Definition at line 210 of file DBIndex.cpp.

References DBBase::close(), Config::COPath, DBBase::getData(), Config::getData(), DBBase::open(), and DBBase::setData().

Referenced by UpgradeMessage::saveHeaderData(), QtstalkerApp::slotSaveCO(), and StocksDialog::split().

void DBIndex::deleteChartObject ( QString &  k,
QString &  d 
)

Definition at line 240 of file DBIndex.cpp.

References DBBase::close(), Config::COPath, DBBase::deleteData(), DBBase::getData(), Config::getData(), DBBase::open(), and DBBase::setData().

Referenced by IndicatorPage::deleteIndicator(), and QtstalkerApp::slotDeleteCO().

void DBIndex::deleteAllChartObjects ( QString &  k  ) 

Definition at line 268 of file DBIndex.cpp.

References DBBase::close(), Config::COPath, DBBase::deleteData(), DBBase::getData(), Config::getData(), DBBase::open(), and DBBase::setData().

Referenced by deleteChart(), and QtstalkerApp::slotDeleteAllCO().

void DBIndex::getNewChartObjectName ( QString &  k,
QString &  name 
)

Definition at line 302 of file DBIndex.cpp.

References DBBase::close(), Config::COPath, DBBase::getData(), Config::getData(), and DBBase::open().

Referenced by IndicatorPlot::slotNewChartObject().

void DBIndex::setFundamentals ( QString &  k,
QString &  d 
)

Definition at line 353 of file DBIndex.cpp.

References DBBase::close(), Config::FundamentalsPath, Config::getData(), DBBase::open(), and DBBase::setData().

Referenced by Yahoo::parseFundamental(), and UpgradeMessage::saveHeaderData().

void DBIndex::getFundamentals ( QString &  k,
QString &  d 
)

Definition at line 337 of file DBIndex.cpp.

References DBBase::close(), Config::FundamentalsPath, DBBase::getData(), Config::getData(), and DBBase::open().

Referenced by StocksDialog::createFundamentalsPage().


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