kitchensync
QSync::Member Class Reference
List of all members.Detailed Description
Definition at line 33 of file member.h.
Public Member Functions | |
Member () | |
~Member () | |
bool | isValid () const |
QString | configurationDirectory () const |
QString | pluginName () const |
Plugin | plugin () const |
int | id () const |
void | setName (const QString &name) |
QString | name () const |
void | setConfiguration (const QByteArray &configurationData) |
Result | configuration (QByteArray &configurationData, bool useDefault=true) |
Result | save () |
Result | instance (const Plugin &) |
bool | operator== (const Member &) const |
QString | scanDevices (const QString &query) |
bool | testConnection (const QString &configuration) |
Friends | |
class | Group |
class | SyncChange |
class | SyncMemberUpdate |
Member Function Documentation
bool Member::isValid | ( | ) | const |
QString Member::configurationDirectory | ( | ) | const |
QString Member::pluginName | ( | ) | const |
Plugin Member::plugin | ( | ) | const |
int Member::id | ( | ) | const |
void Member::setName | ( | const QString & | name | ) |
QString Member::name | ( | ) | const |
void Member::setConfiguration | ( | const QByteArray & | configurationData | ) |
Sets the configuration data as byte array.
The developer has to decide the type of the data ( e.g. xml, plain text, binary ).
Definition at line 102 of file member.cpp.
Result Member::configuration | ( | QByteArray & | configurationData, | |
bool | useDefault = true | |||
) |
Gets the configuration data as byte array.
The developer has to decide the type of the data ( e.g. xml, plain text, binary ).
- Parameters:
-
useDefault If set to true, return default config, if no config exists. If set to false, return error when no config exists.
- Returns:
- The result of this operation.
Definition at line 109 of file member.cpp.
Result Member::save | ( | ) |
QString Member::scanDevices | ( | const QString & | query | ) |
This method can be used to query the plugin for scanning devices.
The
- Parameters:
-
query is a plugin specific xml document as well as the return value.
Definition at line 158 of file member.cpp.
bool Member::testConnection | ( | const QString & | configuration | ) |
This method can be used to test whether the plugin can connect to the device with the given configuration.
Definition at line 174 of file member.cpp.
The documentation for this class was generated from the following files: