profilesservices/ProfileEngine/WrapperSrc/CProEngNotifyHandlerImpl.h
changeset 21 851e19007849
parent 0 8c5d936e5675
child 29 56ba5cd39aab
equal deleted inserted replaced
19:30540fccecae 21:851e19007849
    19 
    19 
    20 #ifndef CPROENGNOTIFYHANDLERIMPL_H
    20 #ifndef CPROENGNOTIFYHANDLERIMPL_H
    21 #define CPROENGNOTIFYHANDLERIMPL_H
    21 #define CPROENGNOTIFYHANDLERIMPL_H
    22 
    22 
    23 // INCLUDES
    23 // INCLUDES
    24 #include <MProEngNotifyHandler.h>
    24 #include <MProEngNotifyHandler2.h>
    25 #include <e32base.h>
    25 #include <e32base.h>
    26 
    26 
    27 // FORWARD DECLARATIONS
    27 // FORWARD DECLARATIONS
    28 class CProEngProfileActivationDelegate;
    28 class CProEngProfileActivationDelegate;
    29 class CProEngActiveProfileDelegate;
    29 class CProEngActiveProfileDelegate;
    30 class CProEngProfileNameArrayEventDelegate;
    30 class CProEngProfileNameArrayEventDelegate;
    31 class CProEngProfileEventDelegate;
    31 class CProEngProfileEventDelegate;
       
    32 class CProEngActiveSettingsEventDelegate;
       
    33 class CProEngMasterSettingsEventDelegate;
    32 
    34 
    33 // CLASS DECLARATION
    35 // CLASS DECLARATION
    34 
    36 
    35 /**
    37 /**
    36 * This class implements MProEngNotifyHandler interface.
    38 * This class implements MProEngNotifyHandler interface.
    37 *
    39 *
    38 *  @lib ProfileEngine.lib
    40 *  @lib ProfileEngine.lib
    39 *  @since 3.1
    41 *  @since 3.1
    40 */
    42 */
    41 NONSHARABLE_CLASS( CProEngNotifyHandlerImpl ) : public CBase,
    43 NONSHARABLE_CLASS( CProEngNotifyHandlerImpl ) : public CBase,
    42                                                 public MProEngNotifyHandler
    44                                                 public MProEngNotifyHandler2
    43     {
    45     {
    44     public:  // Constructors and destructor
    46     public:  // Constructors and destructor
    45 
    47 
    46         /**
    48         /**
    47          * Two-phased constructor.
    49          * Two-phased constructor.
    79          */
    81          */
    80         TInt RequestProfileNameArrayNotificationsL(
    82         TInt RequestProfileNameArrayNotificationsL(
    81                 MProEngProfileNameArrayObserver& aObserver );
    83                 MProEngProfileNameArrayObserver& aObserver );
    82 
    84 
    83         /**
    85         /**
       
    86          * From MProEngNotifyHandler2
       
    87          */
       
    88         virtual TInt RequestActiveSettingsNotificationsL( 
       
    89                 MProEngActiveSettingsObserver &aObserver );
       
    90         
       
    91         /**
       
    92          * From MProEngNotifyHandler2
       
    93          */
       
    94         virtual TInt RequestMasterSettingsNotificationsL( 
       
    95                 MProEngMasterSettingsObserver &aObserver );
       
    96         
       
    97         /**
    84          * From MProEngNotifyHandler
    98          * From MProEngNotifyHandler
    85          */
    99          */
    86         void CancelProfileActivationNotifications();
   100         void CancelProfileActivationNotifications();
    87 
   101 
    88         /**
   102         /**
    99          * From MProEngNotifyHandler
   113          * From MProEngNotifyHandler
   100          */
   114          */
   101         void CancelProfileNameArrayNotifications();
   115         void CancelProfileNameArrayNotifications();
   102 
   116 
   103         /**
   117         /**
       
   118          * From MProEngNotifyHandler2
       
   119          */
       
   120         virtual void CancelActiveSettingsNotificationsL();
       
   121         
       
   122         /**
       
   123          * From MProEngNotifyHandler2
       
   124          */
       
   125         virtual void CancelMasterSettingsNotificationsL();
       
   126         
       
   127         /**
   104          * From MProEngNotifyHandler
   128          * From MProEngNotifyHandler
   105          */
   129          */
   106         void CancelAll();
   130         void CancelAll();
       
   131                
   107 
   132 
   108     private:
   133     private:
   109 
   134 
   110         /**
   135         /**
   111          * C++ default constructor.
   136          * C++ default constructor.
   123         // Own: Delegate for profile name array modification events
   148         // Own: Delegate for profile name array modification events
   124         CProEngProfileNameArrayEventDelegate* iNameArrayEventDelegate;
   149         CProEngProfileNameArrayEventDelegate* iNameArrayEventDelegate;
   125 
   150 
   126         // Own: Array of profile change observers
   151         // Own: Array of profile change observers
   127         RPointerArray< CProEngProfileEventDelegate > iProfileEventDelegates;
   152         RPointerArray< CProEngProfileEventDelegate > iProfileEventDelegates;
       
   153         
       
   154         // Own: Delegate for active settings modification events
       
   155         CProEngActiveSettingsEventDelegate *iActiveSettingEventDelegate;
       
   156         
       
   157         // Own: Delegate for master settings modification events
       
   158         CProEngMasterSettingsEventDelegate *iMasterSettingEventDelegate;
   128 
   159 
   129     };
   160     };
   130 
   161 
   131 #endif      //  CPROENGNOTIFYHANDLERIMPL_H
   162 #endif      //  CPROENGNOTIFYHANDLERIMPL_H
   132 
   163