#include <nvemsettings.h>
Public Member Functions | |
| QString | getSetting (const QString &key, const QString &setting, const QString &def="") |
| Retrieve the string associated with setting within the key namespace. | |
| int | getSetting (const QString &key, const QString &setting, const int &def) |
| Retrieve the integer associated with setting within the key namespace. | |
| void | setSetting (const QString &key, const QString &setting, const QString &val) |
| Set the string associated with setting within the key namespace to val. | |
| void | setSetting (const QString &key, const QString &setting, const int &val) |
| Set the integer associated with setting within the key namespace to val. | |
| int | saveSettings () |
| Save all settings to disk. | |
| int | loadSettings () |
| Loads all settings from disk. | |
| void | setMainWidget (nvemFTP *widget) |
| Set the pointer to our main widget. | |
| nvemFTP * | mainWidget () const |
| Retrieve a pointer to our main widget. | |
| void | setStartUrl (NHostInfo newurl) |
| Set the starting URL for our session. | |
| NHostInfo | getStartUrl () const |
| Retrieve the starting URL for our session. | |
Static Public Member Functions | |
| nvemSettings & | instance () |
| Returns a reference to the configuration object. | |
| const nvemSettings & | const_instance () |
| Returns a const reference to the configuration object. | |
Protected Member Functions | |
| nvemSettings () | |
| Instantiate a configurations object. | |
| ~nvemSettings () | |
| Destroy the object. | |
Friends | |
| class | std::auto_ptr< nvemSettings > |
| Gives auto_ptr<nvemSettings> access to our destructor. | |
|
|
Instantiate a configurations object.
|
|
|
Destroy the object.
|
|
|
Returns a const reference to the configuration object.
|
|
||||||||||||||||
|
Retrieve the integer associated with setting within the key namespace. Overloaded function for the above.
|
|
||||||||||||||||
|
Retrieve the string associated with setting within the key namespace.
|
|
|
Retrieve the starting URL for our session.
|
|
|
Returns a reference to the configuration object.
|
|
|
Loads all settings from disk. Loads settings from a set of files with names based on their respective namespaces. Directory for loading is QDir::homeDirPath()/.nvemftp/config/ File format is simply a set of "Setting=Value" strings. |
|
|
Retrieve a pointer to our main widget.
|
|
|
Save all settings to disk. Saves settings in a set of files with names based on available setting namespaces. Directory for storage is QDir::homeDirPath()/.nvemftp/config/ File format is simply a set of "Setting=Value" strings. |
|
|
Set the pointer to our main widget.
|
|
||||||||||||||||
|
Set the integer associated with setting within the key namespace to val. Overloaded function for the above.
|
|
||||||||||||||||
|
Set the string associated with setting within the key namespace to val.
|
|
|
Set the starting URL for our session.
|
|
|
Gives auto_ptr<nvemSettings> access to our destructor.
|
1.3