Home · All Namespaces · All Classes
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Properties

StatusIndicator Class Reference

#include <statusindicator.h>

Inheritance diagram for StatusIndicator:
Inheritance graph
[legend]

List of all members.

Signals

void subscriptionMade ()
 

Public Member Functions

 StatusIndicator (QGraphicsItem *parent=NULL)
virtual ~StatusIndicator ()
 Destructor.
virtual void updateGeometry ()
 REIMPLEMENTATION

Protected Member Functions

void setStyleNameAndUpdate (const QString &name=QString())
void setValue (QVariant v)
QVariant value () const
void updateAnimationStatus ()
 Updates the animation status of the views.
ContextItemcreateContextItem (ApplicationContext &context, const QString &key)

Protected Attributes

bool animateIfPossible
 Whether or not the view should animate if possible.

Properties

QVariant value

Detailed Description

StatusIndicator is a widget for displaying either image or text based status indicators in the status indicator area of the home screen.


Constructor & Destructor Documentation

StatusIndicator::StatusIndicator ( QGraphicsItem *  parent = NULL  )  [explicit]

Constructs a StatusIndicator.

Parameters:
parent parent MWidget
StatusIndicator::~StatusIndicator (  )  [virtual]

Destructor.


Member Function Documentation

ContextItem * StatusIndicator::createContextItem ( ApplicationContext context,
const QString &  key 
) [protected]

Returns a context item with the specified key newly allocated from the specified application context.

Parameters:
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.
Returns:
New ContextItem object tracking the particular context item in the system. The created ContextItem is owned by the StatusIdicator class and shall not be deleted by the caller.
void StatusIndicator::setStyleNameAndUpdate ( const QString &  name = QString()  )  [protected]

Calls setStyleName(name) and update() for convenience.

Parameters:
name the style name to set
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.

void StatusIndicator::subscriptionMade (  )  [signal]

Emitted when a subscription to the context items has been made

void StatusIndicator::updateAnimationStatus (  )  [protected]

Updates the animation status of the views.

void StatusIndicator::updateGeometry (  )  [virtual]

REIMPLEMENTATION

QVariant StatusIndicator::value (  )  const [protected]

Gets the value of the indicator.

See also:
setValue

Member Data Documentation

Whether or not the view should animate if possible.


Property Documentation

QVariant StatusIndicator::value [read, write]

The documentation for this class was generated from the following files:

Copyright © 2011 Nokia Corporation Generated on Tue Aug 30 2011 16:38:13
Doxygen 1.7.1
MeeGo Touch