|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : HWRMTestAppPropertyObserver.h 00004 * Part of : HWRMTestApp 00005 * Interface : 00006 * Description : P&S Observer for HWRM test app. 00007 * Version : 00008 * 00009 * Copyright (c) 2002-2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 #ifndef HWRMTESTAPPPROPERTYOBSERVER_H 00017 #define HWRMTESTAPPPROPERTYOBSERVER_H 00018 00019 // INCLUDES 00020 #include <e32base.h> 00021 #include <e32property.h> 00022 00023 00024 // CONSTANTS 00025 // None 00026 00027 // MACROS 00028 // None 00029 00030 // DATA TYPES 00031 // None 00032 00033 // FUNCTION PROTOTYPES 00034 // None 00035 00036 // FORWARD DECLARATIONS 00037 class CHWRMTestAppContainer; 00038 00039 // CLASS DECLARATION 00040 00041 /** 00042 * Active object that tracks changes to the P&S properties 00043 * 00044 * @lib HWRMTestApp.exe 00045 * @since Series S60 3.0 00046 */ 00047 class CHWRMTestAppPropertyObserver : public CActive 00048 { 00049 enum {EPriority=0}; 00050 public: 00051 static CHWRMTestAppPropertyObserver* NewL( const TUid aUid, 00052 const TUint32 aKey, 00053 const CHWRMTestAppContainer* aAppContainer ); 00054 virtual ~CHWRMTestAppPropertyObserver(); 00055 00056 private: 00057 CHWRMTestAppPropertyObserver( const TUid aUid, const TUint32 aKey, 00058 const CHWRMTestAppContainer* aAppContainer ); 00059 void ConstructL(); 00060 void RunL(); 00061 void DoCancel(); 00062 private: 00063 RProperty iProperty; 00064 const TUid iUid; 00065 const TUint32 iKey; 00066 const CHWRMTestAppContainer* iAppContainer; // used to log messages 00067 }; 00068 00069 00070 #endif // HWRMTESTAPPPROPERTYOBSERVER_H 00071 00072 // End of File 00073
|
© Nokia 2006 |