List of all members.
Detailed Description
This class handles parsing of the applet instance and global settings files and creation of settings binaries.
Constructor & Destructor Documentation
MAppletSettings::MAppletSettings |
( |
const QString & |
metaDataFileName, |
|
|
const MAppletId & |
appletId | |
|
) |
| | |
Constructs a MAppletSettings object.
- Parameters:
-
| metaDataFileName | Name of the applet metadata file |
| appletId | The applet's id |
MAppletSettings::MAppletSettings |
( |
const QString & |
metaDataFileName, |
|
|
const QString & |
appletId | |
|
) |
| | |
Constructs a MAppletSettings object.
- Parameters:
-
| metaDataFileName | Name of the applet metadata file |
| appletId | The applet's id as a string with the form applicationName/mashupCanvasName/instanceid, for example: myapp/canvas1/1 |
MAppletSettings::~MAppletSettings |
( |
|
) |
[virtual] |
Member Function Documentation
Returns a data access for the applet global and instance settings. Returns NULL
if the applet has no settings.
MDataStore * MAppletSettings::globalDataStore |
( |
|
) |
const |
Returns the datastore for the applet global settings. Returns NULL
if the applet has no settings.
Gets the MSettingsLanguageBinary object for the global settings. Returns NULL
if the applet has no global settings.
- Returns:
- the applet global settings binary.
bool MAppletSettings::hasSettings |
( |
|
) |
const |
Returns true
if applet has settings (either instance or global or both), false
otherwise.
- Returns:
- a boolean telling whether applet has settings or not.
MDataStore * MAppletSettings::instanceDataStore |
( |
|
) |
const |
Returns the datastore for the applet instance settings. Returns NULL
if the applet has no settings.
Gets the MSettingsLanguageBinary object for the instance settings. Returns NULL
if the applet has no instance settings.
- Returns:
- the applet instance settings binary.
void MAppletSettings::removeInstanceSettingValues |
( |
|
) |
const |
Removes all applet instance settings from the storage backend. The handles to the instance settings still remain in this object though. For example instanceSettingsBinary()
still returns a binary object that contains all the instance settings.
Member Data Documentation