Msrp/MsrpClient/inc/CMSRPConnectionListener.h
branchMSRP_FrameWork
changeset 25 505ad3f0ce5c
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 CMSRPCONNECTIONLISTENER_H_
       
    18 #define CMSRPCONNECTIONLISTENER_H_
       
    19 
       
    20 
       
    21 //  INCLUDES
       
    22 #include "CMSRPListenerBase.h"
       
    23 
       
    24 // CONSTANTS
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CMsrpListenerBase;
       
    28 class CMSRPSessionImplementation;
       
    29 class MMSRPServerInterface;
       
    30 
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /*
       
    35  * The active object for all connection related events
       
    36  */
       
    37 
       
    38 class CMSRPConnectionListener : public CMSRPListenerBase
       
    39     {
       
    40 public:
       
    41     
       
    42     static CMSRPConnectionListener* NewL(CMSRPSessionImplementation& aSessionImpl,
       
    43                                          MMSRPServerInterface& aServerInterface);
       
    44     
       
    45     virtual ~CMSRPConnectionListener();
       
    46     
       
    47 public:
       
    48     
       
    49     void ConnectL( const TDesC8& aRemoteHost,
       
    50                    const TUint aRemotePort,
       
    51                    const TDesC8& aRemoteSessionID );
       
    52   
       
    53 protected: //from base class
       
    54     
       
    55     // CActive
       
    56     void RunL();
       
    57     void DoCancel();
       
    58     
       
    59 private:
       
    60     CMSRPConnectionListener( CMSRPSessionImplementation& aSessionImpl, 
       
    61                              MMSRPServerInterface& aServerInterface );
       
    62     
       
    63     };
       
    64 
       
    65 #endif /* CMSRPCONNECTIONLISTENER_H_ */