convergedconnectionhandler/cchclientapi/cchuinotif/inc/cchuinotifierimpl.h
branchRCL_3
changeset 20 65a3ef1d5bd0
parent 16 df4dfb214df5
equal deleted inserted replaced
18:8c9c07ad8b6b 20:65a3ef1d5bd0
    19 #ifndef C_CCHUINOTIFIERIMPL_H
    19 #ifndef C_CCHUINOTIFIERIMPL_H
    20 #define C_CCHUINOTIFIERIMPL_H
    20 #define C_CCHUINOTIFIERIMPL_H
    21 
    21 
    22 #include <cchuiobserver.h> // for dialog types
    22 #include <cchuiobserver.h> // for dialog types
    23 #include <AknQueryDialog.h>
    23 #include <AknQueryDialog.h>
       
    24 #include <sipprofileregistryobserver.h>
    24 
    25 
    25 #include "cchuinotifier.h" // Base class
    26 #include "cchuinotifier.h" // Base class
    26 #include "cchuicommon.hrh"
    27 #include "cchuicommon.hrh"
    27 #include "cchuicallstateobserver.h"
    28 #include "cchuicallstateobserver.h"
    28 
    29 
       
    30 class CSIPManagedProfile;
       
    31 class CSIPManagedProfileRegistry;
    29 class CCchUiPluginBrandingHandler;
    32 class CCchUiPluginBrandingHandler;
    30 class CCchUiCallStateListener;
    33 class CCchUiCallStateListener;
    31 
    34 
    32 /**
    35 /**
    33  *  Implementation class for notifier.
    36  *  Implementation class for notifier.
    38  *
    41  *
    39  *  @lib cchuinotif.lib
    42  *  @lib cchuinotif.lib
    40  *  @since S60 5.0
    43  *  @since S60 5.0
    41  */
    44  */
    42 NONSHARABLE_CLASS( CCCHUiNotifierImpl ): public CCCHUiNotifierBase,
    45 NONSHARABLE_CLASS( CCCHUiNotifierImpl ): public CCCHUiNotifierBase,
    43                                          public MCchUiCallStateObserver
    46                                          public MCchUiCallStateObserver,
       
    47                                          public MSIPProfileRegistryObserver
    44     {
    48     {
    45 public:
    49 public:
    46     
    50     
    47     static CCCHUiNotifierImpl* NewL();
    51     static CCCHUiNotifierImpl* NewL();
    48 
    52 
   283      * @param aIapIds IapIds in return.
   287      * @param aIapIds IapIds in return.
   284      * @return internet SNAP ID.
   288      * @return internet SNAP ID.
   285      */
   289      */
   286     TUint32 InternetGprsApsMissingFromServiceSnapL(
   290     TUint32 InternetGprsApsMissingFromServiceSnapL(
   287         CDesCArray& aIaps, RArray<TUint32>& aIapIds ) const;
   291         CDesCArray& aIaps, RArray<TUint32>& aIapIds ) const;
       
   292 
       
   293     /**
       
   294      * For deleting RPointerArray in case of leave.
       
   295      *
       
   296      * @since S60 5.0
       
   297      * @param aPointerArray for pointer array to be deleted
       
   298      */
       
   299      static void ResetAndDestroy( TAny* aPointerArray );
   288     
   300     
   289 // from base class CCCHUiNotifierBase
   301 // from base class CCCHUiNotifierBase
   290 
   302 
   291     /**
   303     /**
   292      * From CCCHUiNotifierBase.
   304      * From CCCHUiNotifierBase.
   326     /** 
   338     /** 
   327      * From CActive
   339      * From CActive
   328      */
   340      */
   329     void RunL();
   341     void RunL();
   330     
   342     
       
   343     
       
   344     // from base class MSIPProfileRegistryObserver
       
   345       
       
   346     /** 
       
   347      * From MSIPProfileRegistryObserver 
       
   348      * SIP profile information event.
       
   349      *
       
   350      * @since S60 v3.0
       
   351      * @param aProfileId is id for profile
       
   352      * @param aEvent type of information event
       
   353      */
       
   354     void ProfileRegistryEventOccurred(
       
   355         TUint32 aSIPProfileId, 
       
   356         TEvent aEvent );
       
   357 
       
   358           
       
   359     /**
       
   360      * From MSIPProfileRegistryObserver
       
   361      * An asynchronous error has occurred related to SIP profile.
       
   362      *
       
   363      * @since S60 v3.0
       
   364      * @param aSIPProfileId the id of failed profile 
       
   365      * @param aError a error code
       
   366      */
       
   367      void ProfileRegistryErrorOccurred(
       
   368          TUint32 aSIPProfileId,
       
   369          TInt aError );
       
   370     
   331 public:
   371 public:
   332 
   372 
   333 // from base class MCchUiCallStateObserver
   373 // from base class MCchUiCallStateObserver
   334 
   374 
   335     /**
   375     /**
   371     
   411     
   372     /**
   412     /**
   373      * Current connection IAP ID.
   413      * Current connection IAP ID.
   374      */
   414      */
   375     TUint iCurrentConnectionIapId;
   415     TUint iCurrentConnectionIapId;
       
   416 
       
   417     /*
       
   418      * Handle to SIP managed profile registry.
       
   419      * Own.
       
   420      */
       
   421     CSIPManagedProfileRegistry* iSipProfileRegistry;
   376     
   422     
   377     CCHUI_UNIT_TEST( T_CchUiNotifierImpl )
   423     CCHUI_UNIT_TEST( T_CchUiNotifierImpl )
   378     };
   424     };
   379 
   425 
   380 #endif // C_CCHUINOTIFIERIMPL_H
   426 #endif // C_CCHUINOTIFIERIMPL_H