Fabcoin Core  0.16.2
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 Fabcoin client. More...

#include <optionsmodel.h>

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

Public Types

enum  OptionID {
  StartAtStartup, HideTrayIcon, MinimizeToTray, MapPortUPnP,
  MinimizeOnClose, ProxyUse, ProxyIP, ProxyPort,
  ProxyUseTor, ProxyIPTor, ProxyPortTor, DisplayUnit,
  ThirdPartyTxUrls, Language, CoinControlFeatures, ThreadsScriptVerif,
  DatabaseCache, LogEvents, SpendZeroConfChange, ZeroBalanceAddressToken,
  Listen, NotUseChangeAddress, CheckForUpdates, ReserveBalance,
  OptionIDRowCount
}
 

Signals

void displayUnitChanged (int unit)
 
void coinControlFeaturesChanged (bool)
 
void hideTrayIconChanged (bool)
 
void reserveBalanceChanged (CAmount)
 
void zeroBalanceAddressTokenChanged (bool)
 

Public Member Functions

 OptionsModel (QObject *parent=0, bool resetSettings=false)
 
void Init (bool resetSettings=false)
 
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 getHideTrayIcon ()
 
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)
 
void checkAndMigrate ()
 

Private Attributes

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

Detailed Description

Interface from Qt to configuration data structure for Fabcoin 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 22 of file optionsmodel.h.

Member Enumeration Documentation

Enumerator
StartAtStartup 
HideTrayIcon 
MinimizeToTray 
MapPortUPnP 
MinimizeOnClose 
ProxyUse 
ProxyIP 
ProxyPort 
ProxyUseTor 
ProxyIPTor 
ProxyPortTor 
DisplayUnit 
ThirdPartyTxUrls 
Language 
CoinControlFeatures 
ThreadsScriptVerif 
DatabaseCache 
LogEvents 
SpendZeroConfChange 
ZeroBalanceAddressToken 
Listen 
NotUseChangeAddress 
CheckForUpdates 
ReserveBalance 
OptionIDRowCount 

Definition at line 29 of file optionsmodel.h.

Constructor & Destructor Documentation

OptionsModel::OptionsModel ( QObject *  parent = 0,
bool  resetSettings = false 
)
explicit

Definition at line 33 of file optionsmodel.cpp.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 39 of file optionsmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void OptionsModel::checkAndMigrate ( )
private

Definition at line 540 of file optionsmodel.cpp.

Here is the caller graph for this function:

void OptionsModel::coinControlFeaturesChanged ( bool  _t1)
signal

Definition at line 172 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 232 of file optionsmodel.cpp.

Here is the call graph for this function:

void OptionsModel::displayUnitChanged ( int  unit)
signal

Definition at line 165 of file moc_optionsmodel.cpp.

Here is the caller graph for this function:

bool OptionsModel::getCoinControlFeatures ( )
inline

Definition at line 73 of file optionsmodel.h.

Here is the caller graph for this function:

int OptionsModel::getDisplayUnit ( )
inline

Definition at line 70 of file optionsmodel.h.

Here is the caller graph for this function:

bool OptionsModel::getHideTrayIcon ( )
inline

Definition at line 67 of file optionsmodel.h.

Here is the caller graph for this function:

bool OptionsModel::getMinimizeOnClose ( )
inline

Definition at line 69 of file optionsmodel.h.

Here is the caller graph for this function:

bool OptionsModel::getMinimizeToTray ( )
inline

Definition at line 68 of file optionsmodel.h.

Here is the caller graph for this function:

const QString& OptionsModel::getOverriddenByCommandLine ( )
inline

Definition at line 74 of file optionsmodel.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool OptionsModel::getProxySettings ( QNetworkProxy &  proxy) const

Definition at line 510 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 71 of file optionsmodel.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void OptionsModel::hideTrayIconChanged ( bool  _t1)
signal

Definition at line 179 of file moc_optionsmodel.cpp.

Here is the caller graph for this function:

void OptionsModel::Init ( bool  resetSettings = false)

Definition at line 45 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 534 of file optionsmodel.cpp.

Here is the caller graph for this function:

void OptionsModel::reserveBalanceChanged ( CAmount  _t1)
signal

Definition at line 186 of file moc_optionsmodel.cpp.

Here is the caller graph for this function:

void OptionsModel::Reset ( )

Definition at line 201 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 226 of file optionsmodel.cpp.

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

Definition at line 318 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 499 of file optionsmodel.cpp.

Here is the caller graph for this function:

void OptionsModel::setRestartRequired ( bool  fRequired)

Definition at line 528 of file optionsmodel.cpp.

Here is the caller graph for this function:

void OptionsModel::zeroBalanceAddressTokenChanged ( bool  _t1)
signal

Definition at line 193 of file moc_optionsmodel.cpp.

Here is the caller graph for this function:

Member Data Documentation

bool OptionsModel::fCoinControlFeatures
private

Definition at line 88 of file optionsmodel.h.

bool OptionsModel::fHideTrayIcon
private

Definition at line 82 of file optionsmodel.h.

bool OptionsModel::fMinimizeOnClose
private

Definition at line 84 of file optionsmodel.h.

bool OptionsModel::fMinimizeToTray
private

Definition at line 83 of file optionsmodel.h.

QString OptionsModel::language
private

Definition at line 85 of file optionsmodel.h.

int OptionsModel::nDisplayUnit
private

Definition at line 86 of file optionsmodel.h.

QString OptionsModel::strOverriddenByCommandLine
private

Definition at line 90 of file optionsmodel.h.

QString OptionsModel::strThirdPartyTxUrls
private

Definition at line 87 of file optionsmodel.h.


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