#include <nhostinfo.h>
Public Member Functions | |
NHostInfo () | |
Default constructor. | |
NHostInfo (const QString &url, const QString &name="") | |
Creates a NHostInfo from a URI string. | |
NHostInfo (const QUrl &url) | |
Copy constructor. | |
NHostInfo (const NHostInfo &hInfo) | |
Copy constructor. | |
virtual | ~NHostInfo () |
Destructor. | |
virtual void | setName (const QString &newname) |
Set the name of the host profile. | |
virtual QString | name () const |
Returns the name of the host profile. | |
virtual bool | named () const |
Returns if the bookmark has an explicitly set name or not. | |
virtual QString | getSetting (const QString &setName, bool *ok=NULL) const |
Return the host specific setting for setName. | |
virtual void | setSetting (const QString &setName, const QString &setting) |
Set the associated value to setName to setting. | |
virtual void | setSetting (const QString &setName, const int &setting) |
Set the associated value to setName to integer setting. | |
virtual QString | serialize () const |
Serialize the URI and settings to a INI-style format QString. | |
bool | operator== (const NHostInfo &other) const |
Checks equality of this to other. | |
QString | toStringSimple () const |
Returns a simplified URI for the host. | |
Static Public Member Functions | |
NHostInfo * | unserialize (const QString &settings) |
Unserialize back to an object using the output style of serialize(). |
Stores host-specific settings in addition to the url.
|
Default constructor.
|
|
Creates a NHostInfo from a URI string.
|
|
Copy constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
Return the host specific setting for setName. If the host does not contain a value for the setting, ok is set to false and QString::null is returned.
|
|
Returns the name of the host profile. If the profile is unnamed, toString() is returned. |
|
Returns if the bookmark has an explicitly set name or not.
|
|
Checks equality of this to other.
|
|
Serialize the URI and settings to a INI-style format QString.
|
|
Set the name of the host profile.
|
|
Set the associated value to setName to integer setting.
|
|
Set the associated value to setName to setting.
|
|
Returns a simplified URI for the host. Path information and passwords are ommitted. |
|
Unserialize back to an object using the output style of serialize(). The returned pointer is to an object created with new, so it must be delete by the calling process.
|