Vidalia 0.2.12
|
#include <ConfigPage.h>
Signals | |
void | helpRequested (const QString &topic) |
Public Member Functions | |
ConfigPage (QWidget *parent=0, const QString title=QString()) | |
QString | title () const |
virtual void | load ()=0 |
virtual bool | save (QString &errmsg)=0 |
virtual bool | changedSinceLastApply () |
virtual bool | apply (QString &errmsg) |
virtual void | revert () |
virtual void | retranslateUi () |
Private Attributes | |
QString | _title |
Definition at line 22 of file ConfigPage.h.
ConfigPage::ConfigPage | ( | QWidget * | parent = 0 , |
const QString | title = QString() |
||
) | [inline] |
Default Constructor
Definition at line 28 of file ConfigPage.h.
virtual bool ConfigPage::apply | ( | QString & | errmsg | ) | [inline, virtual] |
Subclassed pages can overload this method to apply any settings to Tor that have been modified since they were last applied (e.g., the changes were made while Tor was not running). Returns true if the changes were applied successfully.
Reimplemented in AdvancedPage, NetworkPage, and ServerPage.
Definition at line 50 of file ConfigPage.h.
Referenced by ConfigDialog::applyChanges().
virtual bool ConfigPage::changedSinceLastApply | ( | ) | [inline, virtual] |
Subclassed pages can overload this method to return true if they contain settings that have been modified since they were last applied to Tor. The default implementation always returns false.
Reimplemented in AdvancedPage, NetworkPage, and ServerPage.
Definition at line 43 of file ConfigPage.h.
Referenced by ConfigDialog::applyChanges().
void ConfigPage::helpRequested | ( | const QString & | topic | ) | [signal] |
Signal emitted when a ConfigPage requests help information on a given topic.
Referenced by ServerPage::bandwidthHelp(), NetworkPage::bridgeRequestFinished(), ServerPage::exitPolicyHelp(), NetworkPage::findBridges(), ServerPage::linkActivated(), NetworkPage::onLinkActivated(), and ServerPage::upnpHelp().
virtual void ConfigPage::load | ( | ) | [pure virtual] |
Pure virtual method. Subclassed pages load their config settings here.
Implemented in AdvancedPage, AppearancePage, GeneralPage, NetworkPage, ServerPage, and ServicePage.
Referenced by ConfigDialog::loadSettings().
virtual void ConfigPage::retranslateUi | ( | ) | [inline, virtual] |
Reimplemented in AdvancedPage, AppearancePage, GeneralPage, NetworkPage, ServerPage, and ServicePage.
Definition at line 58 of file ConfigPage.h.
Referenced by ConfigDialog::retranslateUi().
virtual void ConfigPage::revert | ( | ) | [inline, virtual] |
Subclassed pages can overload this method to revert any cancelled settings.
Reimplemented in AdvancedPage, NetworkPage, and ServerPage.
Definition at line 56 of file ConfigPage.h.
Referenced by ConfigDialog::applyChanges().
virtual bool ConfigPage::save | ( | QString & | errmsg | ) | [pure virtual] |
Pure virtual method. Subclassed pages save their config settings here and return true if everything was saved successfully.
Implemented in AdvancedPage, AppearancePage, GeneralPage, NetworkPage, ServerPage, and ServicePage.
Referenced by ConfigDialog::saveChanges().
QString ConfigPage::title | ( | ) | const [inline] |
Returns the title of this configuration page.
Definition at line 32 of file ConfigPage.h.
References _title.
Referenced by ConfigDialog::applyChanges(), and ConfigDialog::saveChanges().
QString ConfigPage::_title [private] |
Title of this configuration page.
Definition at line 66 of file ConfigPage.h.
Referenced by title().