Anoncoin  0.9.4
P2P Digital Currency
Public Types | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
OptionsModel Class Reference

Interface from Qt to configuration data structure for Anoncoin client. More...

#include <optionsmodel.h>

Inheritance diagram for OptionsModel:
[legend]
Collaboration diagram for OptionsModel:
[legend]

Public Types

enum  OptionID {
  StartAtStartup, MinimizeToTray, MapPortUPnP, MinimizeOnClose,
  ProxyUse, ProxyIP, ProxyPort, ProxySocksVersion,
  Fee, DisplayUnit, ThirdPartyTxUrls, Language,
  CoinControlFeatures, ThreadsScriptVerif, DatabaseCache, SpendZeroConfChange,
  OptionIDRowCount
}
 

Signals

void displayUnitChanged (int unit)
 
void transactionFeeChanged (qint64)
 
void coinControlFeaturesChanged (bool)
 

Public Member Functions

 OptionsModel (QObject *parent=0)
 
void Init ()
 
void Reset ()
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
void setDisplayUnit (const QVariant &value)
 Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal. More...
 
bool getMinimizeToTray ()
 
bool getMinimizeOnClose ()
 
int getDisplayUnit ()
 
QString getThirdPartyTxUrls ()
 
bool getProxySettings (QNetworkProxy &proxy) const
 
bool getCoinControlFeatures ()
 
const QString & getOverriddenByCommandLine ()
 
void setRestartRequired (bool fRequired)
 
bool isRestartRequired ()
 

Private Member Functions

void addOverriddenOption (const std::string &option)
 Add option to list of GUI options overridden through command line/config file. More...
 

Private Attributes

bool fMinimizeToTray
 
bool fMinimizeOnClose
 
QString language
 
int nDisplayUnit
 
QString strThirdPartyTxUrls
 
bool fCoinControlFeatures
 
QString strOverriddenByCommandLine
 

Detailed Description

Interface from Qt to configuration data structure for Anoncoin client.

To Qt, the options are presented as a list with the different options laid out vertically. This can be changed to a tree once the settings become sufficiently complex.

Definition at line 27 of file optionsmodel.h.

Member Enumeration Documentation

Enumerator
StartAtStartup 
MinimizeToTray 
MapPortUPnP 
MinimizeOnClose 
ProxyUse 
ProxyIP 
ProxyPort 
ProxySocksVersion 
Fee 
DisplayUnit 
ThirdPartyTxUrls 
Language 
CoinControlFeatures 
ThreadsScriptVerif 
DatabaseCache 
SpendZeroConfChange 
OptionIDRowCount 

Definition at line 34 of file optionsmodel.h.

Constructor & Destructor Documentation

OptionsModel::OptionsModel ( QObject *  parent = 0)
explicit

Definition at line 36 of file optionsmodel.cpp.

Here is the call graph for this function:

Member Function Documentation

void OptionsModel::addOverriddenOption ( const std::string &  option)
private

Add option to list of GUI options overridden through command line/config file.

Definition at line 42 of file optionsmodel.cpp.

Here is the caller graph for this function:

void OptionsModel::coinControlFeaturesChanged ( bool  _t1)
signal

Definition at line 154 of file moc_optionsmodel.cpp.

Here is the caller graph for this function:

QVariant OptionsModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Definition at line 179 of file optionsmodel.cpp.

Here is the call graph for this function:

void OptionsModel::displayUnitChanged ( int  unit)
signal

Definition at line 140 of file moc_optionsmodel.cpp.

Here is the caller graph for this function:

bool OptionsModel::getCoinControlFeatures ( )
inline

Definition at line 90 of file optionsmodel.h.

Here is the caller graph for this function:

int OptionsModel::getDisplayUnit ( )
inline

Definition at line 87 of file optionsmodel.h.

Here is the caller graph for this function:

bool OptionsModel::getMinimizeOnClose ( )
inline

Definition at line 86 of file optionsmodel.h.

Here is the caller graph for this function:

bool OptionsModel::getMinimizeToTray ( )
inline

Definition at line 85 of file optionsmodel.h.

Here is the caller graph for this function:

const QString& OptionsModel::getOverriddenByCommandLine ( )
inline

Definition at line 91 of file optionsmodel.h.

Here is the caller graph for this function:

bool OptionsModel::getProxySettings ( QNetworkProxy &  proxy) const

Definition at line 429 of file optionsmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString OptionsModel::getThirdPartyTxUrls ( )
inline

Definition at line 88 of file optionsmodel.h.

Here is the caller graph for this function:

void OptionsModel::Init ( )

Definition at line 48 of file optionsmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool OptionsModel::isRestartRequired ( )

Definition at line 453 of file optionsmodel.cpp.

Here is the caller graph for this function:

void OptionsModel::Reset ( )

Definition at line 161 of file optionsmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int OptionsModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 173 of file optionsmodel.cpp.

bool OptionsModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

Definition at line 282 of file optionsmodel.cpp.

Here is the call graph for this function:

void OptionsModel::setDisplayUnit ( const QVariant &  value)

Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal.

Definition at line 418 of file optionsmodel.cpp.

Here is the caller graph for this function:

void OptionsModel::setRestartRequired ( bool  fRequired)

Definition at line 447 of file optionsmodel.cpp.

Here is the caller graph for this function:

void OptionsModel::transactionFeeChanged ( qint64  _t1)
signal

Definition at line 147 of file moc_optionsmodel.cpp.

Here is the caller graph for this function:

Member Data Documentation

bool OptionsModel::fCoinControlFeatures
private

Definition at line 104 of file optionsmodel.h.

bool OptionsModel::fMinimizeOnClose
private

Definition at line 100 of file optionsmodel.h.

bool OptionsModel::fMinimizeToTray
private

Definition at line 99 of file optionsmodel.h.

QString OptionsModel::language
private

Definition at line 101 of file optionsmodel.h.

int OptionsModel::nDisplayUnit
private

Definition at line 102 of file optionsmodel.h.

QString OptionsModel::strOverriddenByCommandLine
private

Definition at line 106 of file optionsmodel.h.

QString OptionsModel::strThirdPartyTxUrls
private

Definition at line 103 of file optionsmodel.h.


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