pressrv_plat/messaging_connection_manager_api/inc/msgbearerobscallback.h
changeset 0 c8caa15ef882
equal deleted inserted replaced
-1:000000000000 0:c8caa15ef882
       
     1 /*
       
     2 * Copyright (c) 2005 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:   Connection manager bearer callback
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __MSGBEAREROBSCALLBACK__
       
    22 #define __MSGBEAREROBSCALLBACK__
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 //This must be kept as low as possible
       
    27 const TInt KMaxNumberOfSubscribers         = 3;
       
    28 
       
    29 //Possible events
       
    30 enum TMsgBearerEvent
       
    31     {
       
    32     EMsgBearerActive = 0,
       
    33     EMsgBearerSuspended,
       
    34     EMsgBearerLost
       
    35     };
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 class MMsgBearerObsCallback
       
    40     {
       
    41     public:
       
    42 
       
    43         /**
       
    44         * A connection manager object uses this callback function to indicate
       
    45         * that a change in the status of the bearer has occurred. It is important
       
    46         * to note that a call to the notification handler (HandleBearerEventL())
       
    47         * takes place inside the RunL() method of a Connection Manager, so the
       
    48         * listening object MUST return the control to the Manager AS SOON AS
       
    49         * POSSIBLE in order not to clog the scheduler. 
       
    50         */
       
    51         virtual void HandleBearerEventL( TBool aAuthoritativeClose,
       
    52                                          TMsgBearerEvent aBearerEvent ) = 0;
       
    53     };
       
    54 
       
    55 #endif    //__MSGBEAREROBSCALLBACK__
       
    56             
       
    57 // End of File