voipplugins/voipadapters/cpvoipadapter/inc/CSIPProfileRegistryObserver.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implements MSIPProfileRegistryObserver interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSIPPROFILEREGISTRYOBSERVER_H
       
    20 #define CSIPPROFILEREGISTRYOBSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <sipprofileregistryobserver.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 /**
       
    27  * Class implements MSIPProfileRegistryObserver interface. 
       
    28  * Observs changes in the SIP profile registry.
       
    29  *
       
    30  * @lib wpsipadapter.lib
       
    31  * @since 2.0
       
    32  */
       
    33 class CSIPProfileRegistryObserver : 
       
    34     public CBase, public MSIPProfileRegistryObserver
       
    35     {    
       
    36     #ifdef _DEBUG
       
    37     /**
       
    38      * Friend class for unit testing.
       
    39      */
       
    40     friend class UT_CWPVoIPAdapter;
       
    41     #endif
       
    42 
       
    43 
       
    44     public: // Constructors and destructor.
       
    45 
       
    46         /**
       
    47          * Two-phased constructor.
       
    48          */
       
    49         static CSIPProfileRegistryObserver* NewLC();
       
    50 
       
    51         /**
       
    52          * Two-phased constructor.
       
    53          */
       
    54         static CSIPProfileRegistryObserver* NewL();
       
    55 
       
    56 
       
    57         /**
       
    58          *   Destructor.
       
    59          */
       
    60         virtual ~CSIPProfileRegistryObserver();
       
    61 
       
    62     public: // Methods from base classes
       
    63     
       
    64 		/** 
       
    65          * An event related to SIP Profile has accorred
       
    66          * @param aProfileId a profile Id
       
    67          * @param aEvent an occurred event
       
    68          **/
       
    69         void ProfileRegistryEventOccurred( 
       
    70             TUint32 aProfileId, TEvent aEvent );
       
    71 
       
    72         /**
       
    73          * An asynchronous error has occurred related to SIP profile
       
    74          * Event is send to those observers, who have the
       
    75          * corresponding profile instantiated.
       
    76          * @param aProfileId the id of failed profile 
       
    77          * @param aError an occurred error
       
    78          */
       
    79         void ProfileRegistryErrorOccurred( TUint32 aProfileId, TInt aError );
       
    80 
       
    81   private:
       
    82         /**
       
    83          *   C++ Default constructor.
       
    84          */
       
    85         CSIPProfileRegistryObserver(); 
       
    86 
       
    87         /**
       
    88          *   By default Symbian 2nd phase constructor is private.
       
    89          */
       
    90         void ConstructL();
       
    91     };
       
    92 
       
    93 #endif // CSIPPROFILEREGISTRYOBSERVER_H
       
    94 
       
    95 // End of file.