MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QmActivity provides information about user activity. More...

Inheritance diagram for MeeGo::QmActivity:
Inheritance graph
[legend]
Collaboration diagram for MeeGo::QmActivity:
Collaboration graph
[legend]

List of all members.

Public Types

enum   Activity { Inactive = 0, Active }
 

Possible user activity states.

More...

Signals

void  activityChanged (MeeGo::QmActivity::Activity activity)
  Sent when activity state has changed.

Public Member Functions

  QmActivity (QObject *parent=0)
  Constructor.
  ~QmActivity ()
  Destructor.
Activity  get () const
  Gets the current activity state.

Protected Member Functions

void  connectNotify (const char *signal)
void  disconnectNotify (const char *signal)

Properties

Activity  status

Detailed Description

QmActivity provides information about user activity.

Scope:
Nokia Meego

QmActivity offers a getter method as well as a changed signal for the user activity state. The state is fetched from the mce daemon


Member Enumeration Documentation

Possible user activity states.

Enumerator:
Inactive 

Inactive.

Active 

Active.


Constructor & Destructor Documentation

MeeGo::QmActivity::QmActivity ( QObject parent = 0  ) 

Constructor.

Parameters:
parent  The possible parent object
MeeGo::QmActivity::~QmActivity (  ) 

Destructor.


Member Function Documentation

void MeeGo::QmActivity::activityChanged ( MeeGo::QmActivity::Activity  activity  )  [signal]

Sent when activity state has changed.

Parameters:
activity  The new activity state
activity  The new activity state
void MeeGo::QmActivity::connectNotify ( const char *  signal  )  [protected, virtual]

Reimplemented from QObject.

void MeeGo::QmActivity::disconnectNotify ( const char *  signal  )  [protected, virtual]

Reimplemented from QObject.

Activity MeeGo::QmActivity::get (  )  const

Gets the current activity state.

Returns:
The current activity state

Property Documentation

Activity MeeGo::QmActivity::status [read]

(C) 2009-2011 Nokia Corporation
LGPL Lesser General Public License
MeeGo 1.2 Harmattan API