voipplugins/sipconnectionprovider/inc/scpalrobserver.h
branchRCL_3
changeset 21 f742655b05bf
parent 20 65a3ef1d5bd0
child 22 d38647835c2e
equal deleted inserted replaced
20:65a3ef1d5bd0 21:f742655b05bf
     1 /*
       
     2 * Copyright (c) 2006-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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_SCPALROBSERVER_H
       
    20 #define M_SCPALROBSERVER_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 /**
       
    26  *  MScpSipAlrObserver declaration.
       
    27  *  @lib sipconnectionprovider.dll
       
    28  */
       
    29 class MScpSipAlrObserver
       
    30     {
       
    31 public:
       
    32 
       
    33     /** 
       
    34      * Enumeration for ALR events 
       
    35      */
       
    36     enum TScpAlrEvent
       
    37         {
       
    38         /** 
       
    39          * A new IAP became available.
       
    40          * When receiving this event the client must call 
       
    41          * CSipProfileAlrController::AllowMigrationL or DisallowMigrationL.
       
    42          */           
       
    43         EScpIapAvailable = 0,
       
    44         /** 
       
    45          * All the clients have allowed the migration to the new IAP and
       
    46          * the migration to the new IAP for the SIP profile has started. 
       
    47          */
       
    48         EScpMigrationStarted,
       
    49         /** 
       
    50          * Migration to a new IAP for a SIP profile has been completed and
       
    51          * the related SIP profile has been registered via the new IAP.
       
    52          */
       
    53         EScpMigrationCompleted
       
    54         };
       
    55             
       
    56     /** 
       
    57      * ALR event occured.
       
    58      * @param aEvent New ALR event.
       
    59      * @param aProfileId SIP profile id
       
    60      * @param aSnapId Snap id
       
    61      * @param aIapId Iap id
       
    62      */             
       
    63     virtual void HandleAlrEvent( TScpAlrEvent aEvent,
       
    64                                  TUint32 aProfileId,
       
    65                                  TUint32 aSnapId,
       
    66                                  TUint32 aIapId ) = 0;
       
    67 
       
    68 private:
       
    69     
       
    70     };
       
    71 
       
    72 #endif // M_SCPALROBSERVER_H
       
    73 
       
    74 // End of file