PECengine/PresenceServer2/ServerSrc/MPengSubSession.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Sub Session abstract Interface
       
    15 *  				 used by CSP holder to inform Sub Session about closing
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __MPENGSUBSESSION_H__
       
    22 #define __MPENGSUBSESSION_H__
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32def.h>
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class	CPengSessionSlotId;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 /**
       
    33  *  Sub Session abstract Interface
       
    34  *  used by CSP holder to inform Sub Session about closing
       
    35  *
       
    36  *  @lib PEngServer2
       
    37  *  @since 3.0
       
    38  */
       
    39 class MPEngSubSession
       
    40     {
       
    41     public:
       
    42         /**
       
    43          *	Store request response
       
    44          *
       
    45          *	@since 3.0
       
    46          *	@param aResponse asynchronous request response
       
    47          */
       
    48         virtual void StoreRequestResponse( HBufC8* aResponse ) = 0;
       
    49 
       
    50 
       
    51         /**
       
    52          *  Application Id of the sub-session
       
    53          *
       
    54          *  @since 3.0
       
    55          *  @return application Id of the sub-session
       
    56          */
       
    57         virtual TDesC& AppId() = 0;
       
    58 
       
    59         /**
       
    60          *  Handler successful application Id login
       
    61          *
       
    62          *  @since 3.0
       
    63          */
       
    64         virtual void HandleLogInL() = 0;
       
    65 
       
    66         /**
       
    67          *  Handler successful application Id logOut
       
    68          *
       
    69          *  @since 3.0
       
    70          */
       
    71         virtual void HandleLogOut() = 0;
       
    72 
       
    73         /**
       
    74          *  Disconnect Application Id
       
    75          *
       
    76          *  @since 3.0
       
    77          *  @param aAppId application Id
       
    78          */
       
    79         virtual void DisconnectAppId( const TDesC& aAppId ) = 0;
       
    80 
       
    81 
       
    82         /**
       
    83          *  CSP session closed
       
    84          *
       
    85          *  @since 3.0
       
    86          */
       
    87         virtual void CSPSessionClosed() = 0;
       
    88 
       
    89     protected:  //Destructor
       
    90 
       
    91         /**
       
    92          * Virtual inline destructor.
       
    93          *
       
    94          * Cannot be used to delete
       
    95          */
       
    96         virtual ~MPEngSubSession() {};
       
    97 
       
    98     };
       
    99 
       
   100 #endif      // __MPENGSUBSESSION_H__
       
   101 
       
   102 // End of File