Msrp/MsrpClient/inc/CMSRPImplementation.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 CMSRPIMPLEMENTATION_H_
       
    18 #define CMSRPIMPLEMENTATION_H_
       
    19 
       
    20 // @internal
       
    21 
       
    22 // System Includes
       
    23 #include <e32base.h>
       
    24 
       
    25 // Forward Declarations
       
    26 class CMSRPSession;
       
    27 class CMSRP;
       
    28 class MMSRPSessionObserver;
       
    29 class RMSRP;
       
    30 
       
    31 
       
    32 class CMSRPImplementation : public CBase
       
    33     {
       
    34 public:
       
    35     
       
    36     static CMSRPImplementation* NewL( const TUid& aUid );
       
    37     
       
    38     static CMSRPImplementation* NewLC( const TUid& aUid );
       
    39     
       
    40     ~CMSRPImplementation();
       
    41     
       
    42     CMSRPSession* CreateMSRPSessionL( MMSRPSessionObserver& aObserver, 
       
    43                                       const TUint aIapId );
       
    44     
       
    45     void CloseMSRPSession( CMSRPSession* aMsrpSession );
       
    46         
       
    47 private:
       
    48     
       
    49     CMSRPImplementation( const TUid& aUid );
       
    50     
       
    51     void ConstructL();
       
    52     
       
    53 private:
       
    54     
       
    55     TUid iUid;
       
    56     
       
    57     RMSRP* iMSRP;
       
    58     
       
    59     //Array of MSRP sessions that it is serving
       
    60     RPointerArray<CMSRPSession> iMSRPSessionsArray;
       
    61         
       
    62     };
       
    63 #endif /* CMSRPIMPLEMENTATION_H_ */