25 #ifndef __SB_BASE_SCREEN_SAVER_SUPPRESSOR_H__
26 #define __SB_BASE_SCREEN_SAVER_SUPPRESSOR_H__
28 #include "sbIScreenSaverSuppressor.h"
30 #include <nsIObserver.h>
32 #include <nsAutoLock.h>
33 #include <nsComponentManagerUtils.h>
35 #include <nsStringGlue.h>
37 class nsIComponentManager;
40 struct nsModuleComponentInfo;
48 NS_DECL_SBISCREENSAVERSUPPRESSOR
53 static NS_METHOD
RegisterSelf(nsIComponentManager* aCompMgr,
55 const char* aLoaderStr,
57 const nsModuleComponentInfo *aInfo);
61 virtual nsresult
OnSuppress(PRBool aSuppress) = 0;
69 #define SB_BASE_SCREEN_SAVER_SUPPRESSOR_DESC \
70 "Songbird Screen Saver Suppressor Service"
71 #define SB_BASE_SCREEN_SAVER_SUPPRESSOR_CLASSNAME \
72 "sbScreenSaverSuppressor"
73 #define SB_BASE_SCREEN_SAVER_SUPPRESSOR_CONTRACTID \
74 "@songbirdnest.com/Songbird/ScreenSaverSuppressor;1"
75 #define SB_BASE_SCREEN_SAVER_SUPPRESSOR_CID \
76 { 0xe3247f9, 0xa111, 0x4d2a, { 0x86, 0x9a, 0x4, 0x39, 0x66, 0x10, 0x8d, 0x98 } }
78 #endif // __SB_BASE_SCREEN_SAVER_SUPPRESSOR_H__
Get/Set Screen Saver Suppression.
PRPackedBool mHasUserSetting
NS_DECL_ISUPPORTS NS_DECL_NSIOBSERVER NS_DECL_SBISCREENSAVERSUPPRESSOR sbBaseScreenSaverSuppressor()
virtual ~sbBaseScreenSaverSuppressor()
static NS_METHOD RegisterSelf(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
PRPackedBool mUserSetting
virtual nsresult OnSuppress(PRBool aSuppress)=0