![]() |
Home · All Namespaces · All Classes |
#include <statusindicator.h>


Public Member Functions | |
| StatusIndicator (QGraphicsItem *parent=NULL) | |
| virtual | ~StatusIndicator () |
| Destructor. | |
| virtual void | updateGeometry () |
| REIMPLEMENTATION | |
Protected Member Functions | |
| void | setValue (QVariant v) |
| | |
| QVariant | value () const |
| void | updateAnimationStatus () |
| Updates the animation status of the views. | |
| ContextItem * | createContextItem (ApplicationContext &context, const QString &key) |
Protected Attributes | |
| bool | animateIfPossible |
| Whether or not the view should animate if possible. | |
Properties | |
| QVariant | value |
StatusIndicator is a widget for displaying either image or text based status indicators in the status indicator area of the home screen.
Definition at line 39 of file statusindicator.h.
| StatusIndicator::StatusIndicator | ( | QGraphicsItem * | parent = NULL |
) | [explicit] |
Constructs a StatusIndicator.
| parent | parent MWidget |
Definition at line 50 of file statusindicator.cpp.
00050 : 00051 MWidgetController(new StatusIndicatorModel, parent), 00052 animateIfPossible(false), 00053 modelUpdatesEnabled(true), 00054 currentValue(QVariant()) 00055 { 00056 }
| StatusIndicator::~StatusIndicator | ( | ) | [virtual] |
Destructor.
Definition at line 58 of file statusindicator.cpp.
00059 { 00060 foreach(ContextItem* item, contextItems) { 00061 delete item; 00062 } 00063 }
| ContextItem * StatusIndicator::createContextItem | ( | ApplicationContext & | context, | |
| const QString & | key | |||
| ) | [protected] |
Returns a context item with the specified key newly allocated from the specified application context.
| context | Context framework application context for the context item to be allocated from. | |
| key | Unique intifier of the context item in the application context that is to be monitored. |
Definition at line 117 of file statusindicator.cpp.
00118 { 00119 ContextItem *item = context.createContextItem(key); 00120 contextItems.append(item); 00121 return item; 00122 }

| void StatusIndicator::setValue | ( | QVariant | v | ) | [protected] |
Sets the value of the indicator. This will be used by the dynamic indicators to change their appearance based on some value. The type of the value is determined by the indicator type. For indicators that display an image from a list of images, the value is a float 0 to 1 which is used to determine the used image. For indicators that display text, the value is the string to display.
Definition at line 70 of file statusindicator.cpp.
| void StatusIndicator::updateAnimationStatus | ( | ) | [protected] |
Updates the animation status of the views.
Definition at line 108 of file statusindicator.cpp.
00109 { 00110 if (modelUpdatesEnabled) { 00111 model()->setAnimate(animateIfPossible); 00112 } else { 00113 model()->setAnimate(false); 00114 } 00115 }
| void StatusIndicator::updateGeometry | ( | ) | [virtual] |
REIMPLEMENTATION
Definition at line 65 of file statusindicator.cpp.
00066 { 00067 MWidgetController::updateGeometry(); 00068 }
| QVariant StatusIndicator::value | ( | ) | const [protected] |
Gets the value of the indicator.
bool StatusIndicator::animateIfPossible [protected] |
Whether or not the view should animate if possible.
Definition at line 84 of file statusindicator.h.
QVariant StatusIndicator::value [read, write] |
Definition at line 44 of file statusindicator.h.
| Copyright © 2010 Nokia Corporation | Generated on Wed Nov 10 16:05:12 2010 Doxygen 1.6.1 |
MeeGo Touch |