Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 Bitcoin client. More...

#include <optionsmodel.h>

+ Inheritance diagram for OptionsModel:
+ Collaboration diagram for OptionsModel:

Public Types

enum  OptionID {
  StartAtStartup,
  MinimizeToTray,
  MapPortUPnP,
  MinimizeOnClose,
  ProxyUse,
  ProxyIP,
  ProxyPort,
  ProxySocksVersion,
  Fee,
  DisplayUnit,
  DisplayAddresses,
  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)
 
bool getMinimizeToTray ()
 
bool getMinimizeOnClose ()
 
int getDisplayUnit ()
 
bool getDisplayAddresses ()
 
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
 
bool bDisplayAddresses
 
QString strThirdPartyTxUrls
 
bool fCoinControlFeatures
 
QString strOverriddenByCommandLine
 

Detailed Description

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

Member Enumeration Documentation

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

Definition at line 27 of file optionsmodel.h.

Constructor & Destructor Documentation

OptionsModel::OptionsModel ( QObject parent = 0)
explicit

Definition at line 27 of file optionsmodel.cpp.

References Init().

+ 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 33 of file optionsmodel.cpp.

References mapArgs, and strOverriddenByCommandLine.

Referenced by Init().

+ Here is the caller graph for this function:

void OptionsModel::coinControlFeaturesChanged ( bool  _t1)
signal

Definition at line 113 of file moc_optionsmodel.cpp.

Referenced by setData().

+ Here is the caller graph for this function:

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

Definition at line 99 of file moc_optionsmodel.cpp.

Referenced by setData().

+ Here is the caller graph for this function:

bool OptionsModel::getCoinControlFeatures ( )
inline

Definition at line 62 of file optionsmodel.h.

References fCoinControlFeatures.

Referenced by SendCoinsDialog::coinControlUpdateLabels(), SendCoinsDialog::on_sendButton_clicked(), and SendCoinsDialog::setModel().

+ Here is the caller graph for this function:

bool OptionsModel::getDisplayAddresses ( )
inline

Definition at line 59 of file optionsmodel.h.

References bDisplayAddresses.

Referenced by TransactionTableModel::lookupAddress().

+ Here is the caller graph for this function:

int OptionsModel::getDisplayUnit ( )
inline
bool OptionsModel::getMinimizeOnClose ( )
inline

Definition at line 57 of file optionsmodel.h.

References fMinimizeOnClose.

Referenced by BitcoinGUI::closeEvent().

+ Here is the caller graph for this function:

bool OptionsModel::getMinimizeToTray ( )
inline

Definition at line 56 of file optionsmodel.h.

References fMinimizeToTray.

Referenced by BitcoinGUI::changeEvent(), and BitcoinGUI::closeEvent().

+ Here is the caller graph for this function:

const QString& OptionsModel::getOverriddenByCommandLine ( )
inline

Definition at line 63 of file optionsmodel.h.

References strOverriddenByCommandLine.

Referenced by OptionsDialog::setModel().

+ Here is the caller graph for this function:

bool OptionsModel::getProxySettings ( QNetworkProxy &  proxy) const

Definition at line 352 of file optionsmodel.cpp.

References GetProxy(), and NET_IPV4.

Referenced by PaymentServer::initNetManager().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString OptionsModel::getThirdPartyTxUrls ( )
inline

Definition at line 60 of file optionsmodel.h.

References strThirdPartyTxUrls.

Referenced by TransactionView::setModel().

+ Here is the caller graph for this function:

void OptionsModel::Init ( )

Definition at line 39 of file optionsmodel.cpp.

References addOverriddenOption(), bDisplayAddresses, BitcoinUnits::BTC, DEFAULT_SCRIPTCHECK_THREADS, DEFAULT_TRANSACTION_FEE, fCoinControlFeatures, fMinimizeOnClose, fMinimizeToTray, language, mapArgs, nDefaultDbCache, nDisplayUnit, nTransactionFee, setRestartRequired(), SoftSetArg(), SoftSetBoolArg(), strThirdPartyTxUrls, and USE_UPNP.

Referenced by OptionsModel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool OptionsModel::isRestartRequired ( )

Definition at line 380 of file optionsmodel.cpp.

Referenced by OptionsDialog::setModel().

+ Here is the caller graph for this function:

void OptionsModel::Reset ( )

Definition at line 139 of file optionsmodel.cpp.

References GUIUtil::GetStartOnSystemStartup(), and GUIUtil::SetStartOnSystemStartup().

Referenced by OptionsDialog::on_resetButton_clicked().

+ 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 151 of file optionsmodel.cpp.

References OptionIDRowCount.

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

Definition at line 374 of file optionsmodel.cpp.

Referenced by Init(), and setData().

+ Here is the caller graph for this function:

void OptionsModel::transactionFeeChanged ( qint64  _t1)
signal

Definition at line 106 of file moc_optionsmodel.cpp.

Referenced by setData().

+ Here is the caller graph for this function:

Member Data Documentation

bool OptionsModel::bDisplayAddresses
private

Definition at line 75 of file optionsmodel.h.

Referenced by data(), getDisplayAddresses(), Init(), and setData().

bool OptionsModel::fCoinControlFeatures
private

Definition at line 77 of file optionsmodel.h.

Referenced by data(), getCoinControlFeatures(), Init(), and setData().

bool OptionsModel::fMinimizeOnClose
private

Definition at line 72 of file optionsmodel.h.

Referenced by data(), getMinimizeOnClose(), Init(), and setData().

bool OptionsModel::fMinimizeToTray
private

Definition at line 71 of file optionsmodel.h.

Referenced by data(), getMinimizeToTray(), Init(), and setData().

QString OptionsModel::language
private

Definition at line 73 of file optionsmodel.h.

Referenced by Init().

int OptionsModel::nDisplayUnit
private

Definition at line 74 of file optionsmodel.h.

Referenced by data(), getDisplayUnit(), Init(), and setData().

QString OptionsModel::strOverriddenByCommandLine
private

Definition at line 79 of file optionsmodel.h.

Referenced by addOverriddenOption(), and getOverriddenByCommandLine().

QString OptionsModel::strThirdPartyTxUrls
private

Definition at line 76 of file optionsmodel.h.

Referenced by data(), getThirdPartyTxUrls(), Init(), and setData().


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