Msrp/MsrpServer/inc/MMSRPConnectionObserver.h
branchMSRP_FrameWork
changeset 25 505ad3f0ce5c
child 58 cdb720e67852
equal deleted inserted replaced
22:f1578314b8da 25:505ad3f0ce5c
       
     1 /*
       
     2 * Copyright (c) 2009-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 * Initial Contributors:
       
     9 * Nokia Corporation - initial contribution.
       
    10 * Contributors:
       
    11 *
       
    12 * Description:
       
    13 * MSRP Implementation
       
    14 *
       
    15 */
       
    16 
       
    17 #ifndef MMMSRPCONNECTIONOBSERVER_H
       
    18 #define MMMSRPCONNECTIONOBSERVER_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32base.h>
       
    22 
       
    23 class CMSRPMessageHandler;
       
    24 
       
    25 
       
    26 // CLASS DECLARATIONS
       
    27 /**
       
    28 * Interface for observing the connection
       
    29 */
       
    30 class MMSRPConnectionObserver
       
    31     {
       
    32     public:
       
    33         
       
    34         enum TMSRPConnErrors
       
    35              {
       
    36              EConnectionStateUnexpected = -150,
       
    37              };
       
    38 
       
    39         /**
       
    40         * SocketState
       
    41         * @param aNewState The new state of the connection
       
    42         * connected, timed out, disconnected etc.., unknown or undefined
       
    43 		* @param aStatus system-wide error code
       
    44         *///pass connection also
       
    45         virtual void ConnectionStateL( TInt aNewState, TInt aStatus ) = 0;
       
    46         
       
    47         /**
       
    48          * Message Received
       
    49          * @return: if session id match return TRUE
       
    50          * else return FALSE
       
    51          */
       
    52         virtual TBool MessageReceivedL( CMSRPMessageHandler* aMsg ) = 0;
       
    53         
       
    54         virtual void UnclaimedMessageL( CMSRPMessageHandler* aMsg ) = 0;
       
    55 
       
    56     };
       
    57 
       
    58 #endif // MMMSRPCONNECTIONOBSERVER_H
       
    59 
       
    60 // End of file