syncmlfw/common/obex/obexcommserver/inc/nsmlobexserversession.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     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:  SyncML Obex server internal server module
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __NSMLOBEXSERVERSESSION_H__
       
    21 #define __NSMLOBEXSERVERSESSION_H__
       
    22 
       
    23 // ---------------------------------------------------------------------------------------
       
    24 // Includes
       
    25 // ---------------------------------------------------------------------------------------
       
    26 #include <e32std.h>
       
    27 
       
    28 // ---------------------------------------------------------------------------------------
       
    29 // Class forwards
       
    30 // ---------------------------------------------------------------------------------------
       
    31 class CNSmlObexCommServer;
       
    32 
       
    33 // ---------------------------------------------------------------------------------------
       
    34 // Base implementation of obex server session
       
    35 // ---------------------------------------------------------------------------------------
       
    36 class RNSmlObexServerSession : public RSessionBase
       
    37 	{
       
    38 public:
       
    39 	virtual TInt Connect() = 0;
       
    40 	IMPORT_C void Close();
       
    41 	IMPORT_C void Disconnect();
       
    42 	IMPORT_C void SetReceivedPacket( const TDesC8& aData );
       
    43 	IMPORT_C TInt GetSendPacket( TDes8& aData );
       
    44 	IMPORT_C void GetSendPacket( TDes8& aData, TRequestStatus& aStatus ) ;
       
    45 	IMPORT_C void CancelGetSendPacket();
       
    46 	IMPORT_C void ListenDisconnect( TRequestStatus& aStatus );
       
    47 	IMPORT_C void CancelListenDisconnect();
       
    48 
       
    49 protected:
       
    50 	TInt DoConnect( const TDesC& aServerName );
       
    51 	};
       
    52 
       
    53 // ---------------------------------------------------------------------------------------
       
    54 // DS implementation of obex server session
       
    55 // ---------------------------------------------------------------------------------------
       
    56 class RNSmlDSObexServerSession : public RNSmlObexServerSession
       
    57 	{
       
    58 public:
       
    59 	IMPORT_C virtual TInt Connect();
       
    60 	};
       
    61 
       
    62 // ---------------------------------------------------------------------------------------
       
    63 // DM implementation of obex server session
       
    64 // ---------------------------------------------------------------------------------------
       
    65 class RNSmlDMObexServerSession : public RNSmlObexServerSession
       
    66 	{
       
    67 public:
       
    68 	IMPORT_C virtual TInt Connect();
       
    69 	};
       
    70 
       
    71 #endif // __NSMLOBEXSERVERSESSION_H__