This class represents all informations about the applet.
More...
#include <dcpappletobject.h>
List of all members.
Detailed Description
This class represents all informations about the applet.
It both gives access to the binary libs of the applet, and its desktop file.
Constructor & Destructor Documentation
DcpAppletObject::~DcpAppletObject |
( |
|
) |
[virtual] |
Member Function Documentation
void DcpAppletObject::activate |
( |
int |
pageId |
) |
[signal] |
bool DcpAppletObject::activatePluginByName |
( |
const QString & |
appletName |
) |
const [slot] |
A slot for the inter plugin activation.
- Parameters:
-
| appletName | The name of the applet to activate. |
This slot will request activation of an other applet. (Emits the requestPluginActivation() signal.
void DcpAppletObject::activateSlot |
( |
int |
widgetId = -1 |
) |
[slot] |
Qt::Alignment DcpAppletObject::align |
( |
|
) |
const |
DcpBrief * DcpAppletObject::brief |
( |
|
) |
const |
void DcpAppletObject::briefChanged |
( |
|
) |
[signal] |
int DcpAppletObject::briefVersion |
( |
|
) |
const |
Version of the DcpBrief of the applet.
Similar to interfaceVersion(), except that this function returns the version of the DcpBrief instead of the applet. -1 if the applet does not have a brief, but big enough if the appletObject does not have an applet, but has a brief.
int DcpAppletObject::getMainWidgetId |
( |
|
) |
const |
Calls the applet and returns the partid set for this desktop file.
This function will take the "DCP/Part" key and call the "int partID(const QString& partStr)" function of the plugin to get the widgetId for the first/main widget. If the applet is not available the function will return -1, that is an invalid widgetId.
QString DcpAppletObject::helpId |
( |
|
) |
const |
Returns the help id of the applet. Value which comes from DcpBrief overrides the value from the desktop file.
QString DcpAppletObject::iconName |
( |
|
) |
const |
Returns the icon name for the applet by calling the DcpBrief::icon() or DcpBrief::image() virtual method. If the applet returns the empty string (default implementation) the method will return the icon name provided in the desktop file.
QString DcpAppletObject::imageName |
( |
|
) |
const |
int DcpAppletObject::maxValue |
( |
|
) |
const |
int DcpAppletObject::minValue |
( |
|
) |
const |
void DcpAppletObject::requestPluginActivation |
( |
const QString & |
pluginName |
) |
[signal] |
void DcpAppletObject::setBrief |
( |
DcpBrief * |
brief |
) |
[protected] |
void DcpAppletObject::setToggle |
( |
bool |
checked |
) |
[slot] |
void DcpAppletObject::setValue |
( |
const QVariant & |
value |
) |
[slot] |
int DcpAppletObject::sliderSteps |
( |
|
) |
const |
void DcpAppletObject::slotClicked |
( |
|
) |
[slot] |
This slot will 1) count the activations for the 'most used' category 2) re-enable if the applet is disabled and 3) send the activate() signal so thath the applet will be loaded and shown.
QString DcpAppletObject::text1 |
( |
|
) |
const |
QString DcpAppletObject::text2 |
( |
|
) |
const |
bool DcpAppletObject::toggle |
( |
|
) |
const |
QString DcpAppletObject::toggleIconId |
( |
|
) |
const |
QVariant DcpAppletObject::value |
( |
|
) |
const |
int DcpAppletObject::widgetTypeID |
( |
|
) |
const |
Returns what type of brief widget shall an applet variant use.
Gets the required brief widget type code of the applet variant.
Member Data Documentation
The documentation for this class was generated from the following files: