idlefw/plugins/sapidataplugin/inc/sapidataobserver.h
branchRCL_3
changeset 9 d0529222e3f0
parent 1 844b978f8d5e
child 19 502e5d91ad42
equal deleted inserted replaced
4:1a2a00e78665 9:d0529222e3f0
    17 
    17 
    18 
    18 
    19 #ifndef SAPIDATAOBSERVER_H
    19 #ifndef SAPIDATAOBSERVER_H
    20 #define SAPIDATAOBSERVER_H
    20 #define SAPIDATAOBSERVER_H
    21 
    21 
    22 // INCLUDE FILES
    22 // System includes
    23 #include <liwcommon.h>
    23 #include <liwcommon.h>
    24 
    24 
       
    25 // User includes
       
    26 
       
    27 // Forward declarations
    25 class CSapiData;
    28 class CSapiData;
    26 
    29 
    27 class CSapiDataObserver : public CBase, public MLiwNotifyCallback
    30 /**
       
    31  * @ingroup group_sapidataplugin
       
    32  *
       
    33  * Sapi data observer
       
    34  *
       
    35  * @since S60 5.0
       
    36  */
       
    37 NONSHARABLE_CLASS( CSapiDataObserver ) : public CBase, 
       
    38     public MLiwNotifyCallback
    28     {
    39     {
    29 public:
    40 public:
    30 
    41     // constructor and destructor
       
    42     
    31     /**
    43     /**
    32     * Part of the two phased constuction
    44     * Part of the two phased constuction
    33     *
    45     *
    34     * @param aInterface reference of the interface 
    46     * @param aInterface reference of the interface 
    35     * @param aData reference of the sapi data object
    47     * @param aData reference of the sapi data object
    43     * @param none
    55     * @param none
    44     * @return none
    56     * @return none
    45     */   
    57     */   
    46     ~CSapiDataObserver();
    58     ~CSapiDataObserver();
    47 
    59 
    48 private :
    60 private:
       
    61     // construtors
    49     
    62     
    50     /**
    63     /**
    51     * Constructor
    64     * Constructor
    52     *
    65     *
    53     * @param none
    66     * @param none
    62     * @param aData reference of the sapi data object
    75     * @param aData reference of the sapi data object
    63     * @return void
    76     * @return void
    64     */
    77     */
    65     void ConstructL( MLiwInterface* aInterface, CSapiData* aData );
    78     void ConstructL( MLiwInterface* aInterface, CSapiData* aData );
    66        
    79        
    67 public:  //from MLiwNotifyCallbackc
    80 public:  
       
    81     //from MLiwNotifyCallbackc
    68     
    82     
    69     /**
    83     /**
    70     * Handles notifications caused by an asynchronous Execute*CmdL call
    84     * Handles notifications caused by an asynchronous Execute*CmdL call
    71     * or an event.
    85     * or an event.
    72     *
    86     *
    83         TInt /*aEventId*/,
    97         TInt /*aEventId*/,
    84         CLiwGenericParamList& aEventParamList,
    98         CLiwGenericParamList& aEventParamList,
    85         const CLiwGenericParamList& /*aInParamList*/);
    99         const CLiwGenericParamList& /*aInParamList*/);
    86 
   100 
    87 public:
   101 public:
       
   102     // new functions
    88     
   103     
    89     /**
   104     /**
    90     * Registers to CPS for add, delete , update and execute notifications
   105     * Registers to CPS for add, delete , update and execute notifications
    91     * @aFilter - filter for input parameter list
   106     * @aFilter - filter for input parameter list
    92     * @return void.
   107     * @return void.
    98     * @return void.
   113     * @return void.
    99     */
   114     */
   100     void ReleaseL();
   115     void ReleaseL();
   101         
   116         
   102 private:
   117 private:
   103         
   118     // data
   104     // Reference of 
       
   105     // Not owned
       
   106     MLiwInterface* iInterface;
       
   107     
   119     
   108     // Reference of the sapi data
   120     /** Interface Reference, not owned */    
   109     // Not owned
   121     MLiwInterface* iInterface;   
   110     CSapiData* iData;
   122     /** Reference of the sapi data, not owned */
   111     
   123     CSapiData* iData;    
   112     // Call back error code
   124     /** Call back error code */
   113     TInt iError;
   125     TInt iError;        
   114         
       
   115     };
   126     };
   116 
   127 
   117 #endif /*SAPIDATAOBSERVER_H*/
   128 #endif // SAPIDATAOBSERVER_H
       
   129 
       
   130 // End of file
       
   131