voipplugins/voipadapters/dmvoipadapter/inc/CSIPProfileRegistryObserver.h
changeset 0 a4daefaec16c
equal deleted inserted replaced
-1:000000000000 0:a4daefaec16c
       
     1 /*
       
     2 * Copyright (c) 2002-2008 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 nsmldmvopipadapter.lib
       
    31  * @since S60 3.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_CNSmlDmVoIPAdapter; 
       
    41     #endif
       
    42 
       
    43 
       
    44     public: // Constructors and destructor.
       
    45 
       
    46         static CSIPProfileRegistryObserver* NewLC();
       
    47         static CSIPProfileRegistryObserver* NewL();
       
    48         virtual ~CSIPProfileRegistryObserver();
       
    49 
       
    50     public: // Methods from base classes
       
    51     
       
    52 		/** 
       
    53          * An event related to SIP Profile has occurred
       
    54          *
       
    55          * @param aProfileId a profile Id
       
    56          * @param aEvent an occurred event
       
    57          **/
       
    58         void ProfileRegistryEventOccurred( 
       
    59             TUint32 aProfileId, TEvent aEvent );
       
    60 
       
    61         /**
       
    62          * An asynchronous error has occurred related to SIP profile
       
    63          * Event is send to those observers, who have the
       
    64          * corresponding profile instantiated.
       
    65          *
       
    66          * @param aProfileId the id of failed profile 
       
    67          * @param aError an occurred error
       
    68          */
       
    69         void ProfileRegistryErrorOccurred( TUint32 aProfileId, TInt aError );
       
    70 
       
    71   private:
       
    72         CSIPProfileRegistryObserver(); 
       
    73         void ConstructL();
       
    74     };
       
    75 
       
    76 #endif // CSIPPROFILEREGISTRYOBSERVER_H
       
    77 
       
    78 // End of file.