Vidalia  0.3.1
Signals | Public Member Functions | Private Attributes | List of all members
ConfigPage Class Referenceabstract

#include <ConfigPage.h>

Inheritance diagram for ConfigPage:
AdvancedPage AppearancePage GeneralPage NetworkPage ServerPage ServicePage

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
 

Detailed Description

Definition at line 22 of file ConfigPage.h.

Constructor & Destructor Documentation

◆ ConfigPage()

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

Default Constructor

Definition at line 28 of file ConfigPage.h.

Member Function Documentation

◆ apply()

virtual bool ConfigPage::apply ( QString &  errmsg)
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().

◆ changedSinceLastApply()

virtual bool ConfigPage::changedSinceLastApply ( )
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().

◆ helpRequested

void ConfigPage::helpRequested ( const QString &  topic)
signal

◆ load()

virtual void ConfigPage::load ( )
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().

◆ retranslateUi()

virtual void ConfigPage::retranslateUi ( )
inlinevirtual

Reimplemented in ServerPage, AdvancedPage, NetworkPage, AppearancePage, GeneralPage, and ServicePage.

Definition at line 58 of file ConfigPage.h.

Referenced by ConfigDialog::retranslateUi().

◆ revert()

virtual void ConfigPage::revert ( )
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().

◆ save()

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 ServerPage, AppearancePage, GeneralPage, AdvancedPage, NetworkPage, and ServicePage.

Referenced by ConfigDialog::saveChanges().

◆ title()

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

Member Data Documentation

◆ _title

QString ConfigPage::_title
private

Title of this configuration page.

Definition at line 66 of file ConfigPage.h.

Referenced by title().


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