Vidalia
0.3.1
|
#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.
|
inline |
Default Constructor
Definition at line 28 of file ConfigPage.h.
|
inlinevirtual |
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 ServerPage, AdvancedPage, and NetworkPage.
Definition at line 50 of file ConfigPage.h.
Referenced by ConfigDialog::applyChanges().
|
inlinevirtual |
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 ServerPage, AdvancedPage, and NetworkPage.
Definition at line 43 of file ConfigPage.h.
Referenced by ConfigDialog::applyChanges().
|
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(), retranslateUi(), and ServerPage::upnpHelp().
|
pure virtual |
Pure virtual method. Subclassed pages load their config settings here.
Implemented in ServerPage, AppearancePage, GeneralPage, AdvancedPage, NetworkPage, and ServicePage.
Referenced by ConfigDialog::loadSettings(), and title().
|
inlinevirtual |
Reimplemented in ServerPage, AdvancedPage, NetworkPage, AppearancePage, GeneralPage, and ServicePage.
Definition at line 58 of file ConfigPage.h.
References helpRequested().
Referenced by ConfigDialog::retranslateUi().
|
inlinevirtual |
Subclassed pages can overload this method to revert any cancelled settings.
Reimplemented in ServerPage, AdvancedPage, and NetworkPage.
Definition at line 56 of file ConfigPage.h.
Referenced by ConfigDialog::applyChanges().
|
pure virtual |
Pure virtual method. Subclassed pages save their config settings here and return true if everything was saved successfully.
Implemented in ServerPage, AppearancePage, GeneralPage, AdvancedPage, NetworkPage, and ServicePage.
Referenced by ConfigDialog::saveChanges(), and title().
|
inline |
Returns the title of this configuration page.
Definition at line 32 of file ConfigPage.h.
References _title, load(), and save().
Referenced by ConfigDialog::applyChanges(), and ConfigDialog::saveChanges().
|
private |
Title of this configuration page.
Definition at line 66 of file ConfigPage.h.
Referenced by title().