ConfigPage Class Reference

#include <configpage.h>

Inheritance diagram for ConfigPage:

AdvancedPage AppearancePage GeneralPage NetworkPage ServerPage ServicePage List of all members.

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 ()

Private Attributes

QString _title

Detailed Description

Definition at line 23 of file configpage.h.


Constructor & Destructor Documentation

ConfigPage::ConfigPage ( QWidget *  parent = 0,
const QString  title = QString() 
) [inline]

Default Constructor

Definition at line 29 of file configpage.h.


Member Function Documentation

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 51 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 44 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(), ServerPage::exitPolicyHelp(), 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::revert (  )  [inline, virtual]

Subclassed pages can overload this method to revert any cancelled settings.

Reimplemented in AdvancedPage, NetworkPage, and ServerPage.

Definition at line 57 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 33 of file configpage.h.

References _title.

Referenced by ConfigDialog::applyChanges().


Member Data Documentation

QString ConfigPage::_title [private]

Title of this configuration page.

Definition at line 65 of file configpage.h.

Referenced by title().


The documentation for this class was generated from the following file:
Generated on Tue Jul 7 16:58:12 2009 for Vidalia by  doxygen 1.4.7