idlefw/plugins/sapidataplugin/inc/sapidataobserver.h
branchRCL_3
changeset 19 502e5d91ad42
parent 9 d0529222e3f0
child 74 edd621764147
equal deleted inserted replaced
18:bd874ee5e5e2 19:502e5d91ad42
    35  * @since S60 5.0
    35  * @since S60 5.0
    36  */
    36  */
    37 NONSHARABLE_CLASS( CSapiDataObserver ) : public CBase, 
    37 NONSHARABLE_CLASS( CSapiDataObserver ) : public CBase, 
    38     public MLiwNotifyCallback
    38     public MLiwNotifyCallback
    39     {
    39     {
    40 public:
    40 public: // constructor and destructor
    41     // constructor and destructor
       
    42     
    41     
    43     /**
    42     /**
    44     * Part of the two phased constuction
    43     * Part of the two phased constuction
    45     *
    44     *
    46     * @param aInterface reference of the interface 
    45     * @param aInterface reference of the interface 
    55     * @param none
    54     * @param none
    56     * @return none
    55     * @return none
    57     */   
    56     */   
    58     ~CSapiDataObserver();
    57     ~CSapiDataObserver();
    59 
    58 
    60 private:
    59 private:  // construtors
    61     // construtors
       
    62     
    60     
    63     /**
    61     /**
    64     * Constructor
    62     * Constructor
    65     *
    63     *
    66     * @param none
    64     * @param none
    75     * @param aData reference of the sapi data object
    73     * @param aData reference of the sapi data object
    76     * @return void
    74     * @return void
    77     */
    75     */
    78     void ConstructL( MLiwInterface* aInterface, CSapiData* aData );
    76     void ConstructL( MLiwInterface* aInterface, CSapiData* aData );
    79        
    77        
    80 public:  
    78 public: //from MLiwNotifyCallback
    81     //from MLiwNotifyCallbackc
       
    82     
    79     
    83     /**
    80     /**
    84     * Handles notifications caused by an asynchronous Execute*CmdL call
    81     * Handles notifications caused by an asynchronous Execute*CmdL call
    85     * or an event.
    82     * or an event.
    86     *
    83     *
    96         TInt aCmdId,
    93         TInt aCmdId,
    97         TInt /*aEventId*/,
    94         TInt /*aEventId*/,
    98         CLiwGenericParamList& aEventParamList,
    95         CLiwGenericParamList& aEventParamList,
    99         const CLiwGenericParamList& /*aInParamList*/);
    96         const CLiwGenericParamList& /*aInParamList*/);
   100 
    97 
   101 public:
    98 public:  // new functions
   102     // new functions
       
   103     
    99     
   104     /**
   100     /**
   105     * Registers to CPS for add, delete , update and execute notifications
   101     * Registers to CPS for add, delete , update and execute notifications
   106     * @aFilter - filter for input parameter list
   102     * @aFilter - filter for input parameter list
   107     * @return void.
   103     * @return void.
   112     * Cancel all the registered notifications. 
   108     * Cancel all the registered notifications. 
   113     * @return void.
   109     * @return void.
   114     */
   110     */
   115     void ReleaseL();
   111     void ReleaseL();
   116         
   112         
   117 private:
   113 private: // data
   118     // data
       
   119     
   114     
   120     /** Interface Reference, not owned */    
   115     /** Interface Reference, not owned */    
   121     MLiwInterface* iInterface;   
   116     MLiwInterface* iInterface;   
   122     /** Reference of the sapi data, not owned */
   117     /** Reference of the sapi data, not owned */
   123     CSapiData* iData;    
   118     CSapiData* iData;    
   124     /** Call back error code */
       
   125     TInt iError;        
       
   126     };
   119     };
   127 
   120 
   128 #endif // SAPIDATAOBSERVER_H
   121 #endif // SAPIDATAOBSERVER_H
   129 
   122 
   130 // End of file
   123 // End of file