sbScreenSaverSuppressor Class Reference

#include <sbScreenSaverSuppressor.h>

Inheritance diagram for sbScreenSaverSuppressor:
[legend]
Collaboration diagram for sbScreenSaverSuppressor:
[legend]

Public Member Functions

virtual
NS_DECL_ISUPPORTS_INHERITED
nsresult 
OnSuppress (PRBool aSuppress)
 
 sbScreenSaverSuppressor ()
 
virtual ~sbScreenSaverSuppressor ()
 
NS_DECL_ISUPPORTS_INHERITED sbScreenSaverSuppressor ()
 
virtual ~sbScreenSaverSuppressor ()
 
virtual nsresult OnSuppress (PRBool aSuppress)
 
NS_DECL_ISUPPORTS_INHERITED sbScreenSaverSuppressor ()
 
virtual ~sbScreenSaverSuppressor ()
 
virtual nsresult OnSuppress (PRBool aSuppress)
 
- Public Member Functions inherited from sbBaseScreenSaverSuppressor
NS_DECL_ISUPPORTS
NS_DECL_NSIOBSERVER
NS_DECL_SBISCREENSAVERSUPPRESSOR 
sbBaseScreenSaverSuppressor ()
 
virtual ~sbBaseScreenSaverSuppressor ()
 
nsresult Init ()
 
- Public Member Functions inherited from sbIScreenSaverSuppressor
long suppress (in boolean aSuppress)
 Get/set screen saver suppression. True indicates the screen saver is suppressed. More...
 

Static Public Member Functions

static void UpdateSystemActivityCallback (nsITimer *aTimer, void *aClosure)
 
- Static Public Member Functions inherited from sbBaseScreenSaverSuppressor
static NS_METHOD RegisterSelf (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
 

Public Attributes

nsCOMPtr< nsITimer > mUpdateSystemActivityTimer
 

Static Public Attributes

static const PRUint32 UPDATE_SYSTEM_ACTIVITY_PERIOD = 30 * 1000
 

Additional Inherited Members

- Protected Attributes inherited from sbBaseScreenSaverSuppressor
PRInt32 mSuppress
 
PRPackedBool mUserSetting
 
PRPackedBool mHasUserSetting
 

Detailed Description

This class provides screen saver suppressor services.

Definition at line 69 of file sbScreenSaverSuppressor.h.

Constructor & Destructor Documentation

sbScreenSaverSuppressor::sbScreenSaverSuppressor ( )

Construct a screen saver suppressor object.

Definition at line 110 of file sbScreenSaverSuppressor.cpp.

sbScreenSaverSuppressor::~sbScreenSaverSuppressor ( )
virtual

Destroy the screen saver suppressor object.

Definition at line 121 of file sbScreenSaverSuppressor.cpp.

NS_DECL_ISUPPORTS_INHERITED sbScreenSaverSuppressor::sbScreenSaverSuppressor ( )
virtual sbScreenSaverSuppressor::~sbScreenSaverSuppressor ( )
virtual
NS_DECL_ISUPPORTS_INHERITED sbScreenSaverSuppressor::sbScreenSaverSuppressor ( )
virtual sbScreenSaverSuppressor::~sbScreenSaverSuppressor ( )
virtual

Member Function Documentation

virtual nsresult sbScreenSaverSuppressor::OnSuppress ( PRBool  aSuppress)
virtual
virtual nsresult sbScreenSaverSuppressor::OnSuppress ( PRBool  aSuppress)
virtual
nsresult sbScreenSaverSuppressor::OnSuppress ( PRBool  aSuppress)
virtual

Implements sbBaseScreenSaverSuppressor.

Definition at line 45 of file sbScreenSaverSuppressor.mm.

Here is the call graph for this function:

void sbScreenSaverSuppressor::UpdateSystemActivityCallback ( nsITimer *  aTimer,
void *  aClosure 
)
static

Definition at line 73 of file sbScreenSaverSuppressor.mm.

Here is the caller graph for this function:

Member Data Documentation

nsCOMPtr<nsITimer> sbScreenSaverSuppressor::mUpdateSystemActivityTimer

Definition at line 49 of file sbScreenSaverSuppressor.h.

const PRUint32 sbScreenSaverSuppressor::UPDATE_SYSTEM_ACTIVITY_PERIOD = 30 * 1000
static

Definition at line 47 of file sbScreenSaverSuppressor.h.


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