voipplugins/sipconnectionprovider/inc/scpsipconnectionobserver.h
branchRCL_3
changeset 22 d38647835c2e
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2006-2010 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_SCPSIPCONNECTIONOBSERVER_H
       
    20 #define M_SCPSIPCONNECTIONOBSERVER_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "scpdefs.h"
       
    26 
       
    27 /**
       
    28  *  MScpSipConnectionObserver declaration.
       
    29  *  @lib sipconnectionprovider.dll
       
    30  */
       
    31 class MScpSipConnectionObserver
       
    32     {
       
    33 public:
       
    34 
       
    35     /**
       
    36      * SIP profile state observer.
       
    37      * @param aProfileId SIP profile id
       
    38      * @param aSipEvent A new event of SIP profile.
       
    39      */
       
    40     virtual void HandleSipConnectionEvent( TUint32 aProfileId,
       
    41                                            TScpConnectionEvent aEvent ) = 0;
       
    42       
       
    43     /**
       
    44      * Query is starting to ALR allowed.
       
    45      * Client can start ALR later if needed to do something first
       
    46      * 
       
    47      * @return ETrue if allowed.
       
    48      */
       
    49     virtual TBool IsSipProfileAllowedToStartAlr() = 0;
       
    50     
       
    51     };
       
    52 
       
    53 /**
       
    54  *  MScpConnectionObserver declaration.
       
    55  *  @lib sipconnectionprovider.dll
       
    56  */
       
    57 class MScpConnectionObserver
       
    58     {
       
    59 public:
       
    60 
       
    61     /**
       
    62      * SIP profile state observer.
       
    63      * @param aProfileId SIP profile id
       
    64      * @param aSipEvent A new event of SIP profile.
       
    65      */
       
    66     virtual void HandleConnectionEvent( TScpConnectionEvent aEvent ) = 0;
       
    67         
       
    68     };
       
    69 
       
    70 
       
    71 #endif // M_SCPSIPCONNECTIONOBSERVER_H
       
    72 
       
    73 // End of file