epoc32/include/mw/obexserver.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 
       
    17 
       
    18 /**
    16 /**
    19  @file
    17  @file
    20  @publishedAll
    18  @publishedAll
    21  @released
    19  @released
    22 */
    20 */
    23 
    21 
    24 #ifndef __OBEXSERVER_H
    22 #ifndef __OBEXSERVER_H
    25 #define __OBEXSERVER_H
    23 #define __OBEXSERVER_H
    26 
    24 
    27 #include <obextypes.h>
    25 #include <obextypes.h>
    28 #include <obex/internal/obextransportconstants.h>
       
    29 #include <obexbase.h>
    26 #include <obexbase.h>
    30 
    27 
    31 class TObexTransportInfo;
    28 class TObexTransportInfo;
    32 class CObexServerRequestPacketEngine;
    29 class CObexServerRequestPacketEngine;
    33 class CObexPacketSignaller;
    30 class CObexPacketSignaller;
    84 		};
    81 		};
    85 
    82 
    86 	IMPORT_C static CObexServer* NewL(TObexProtocolInfo& aObexProtocolInfoPtr);
    83 	IMPORT_C static CObexServer* NewL(TObexProtocolInfo& aObexProtocolInfoPtr);
    87 	IMPORT_C static CObexServer* NewL(TObexProtocolInfo& aObexProtocolInfoPtr, TObexProtocolPolicy& aObexProtocolPolicy);
    84 	IMPORT_C static CObexServer* NewL(TObexProtocolInfo& aObexProtocolInfoPtr, TObexProtocolPolicy& aObexProtocolPolicy);
    88 	IMPORT_C static CObexServer* NewL(TObexTransportInfo& aObexTransportInfo);
    85 	IMPORT_C static CObexServer* NewL(TObexTransportInfo& aObexTransportInfo);
    89 	IMPORT_C ~CObexServer();
    86 	~CObexServer();
    90 	IMPORT_C TInt Start(MObexServerNotify* aOwner);
    87 	IMPORT_C TInt Start(MObexServerNotify* aOwner);
    91 	IMPORT_C TInt Start(MObexServerNotifyAsync* aOwner);
    88 	IMPORT_C TInt Start(MObexServerNotifyAsync* aOwner);
    92 	IMPORT_C void Stop();
    89 	IMPORT_C void Stop();
    93 	IMPORT_C TBool IsStarted();
    90 	IMPORT_C TBool IsStarted();
    94 	IMPORT_C TOperation CurrentOperation() const;
    91 	IMPORT_C TOperation CurrentOperation() const;
   101 	IMPORT_C TInt RequestIndicationCallback(CObexBaseObject* aObject);
    98 	IMPORT_C TInt RequestIndicationCallback(CObexBaseObject* aObject);
   102     IMPORT_C TInt RequestIndicationCallbackWithError(TObexResponse aResponseCode);
    99     IMPORT_C TInt RequestIndicationCallbackWithError(TObexResponse aResponseCode);
   103     IMPORT_C TInt RequestIndicationCallbackWithError(TInt aErrorCode);
   100     IMPORT_C TInt RequestIndicationCallbackWithError(TInt aErrorCode);
   104     IMPORT_C TInt RequestCompleteIndicationCallback(TObexResponse aResponseCode);
   101     IMPORT_C TInt RequestCompleteIndicationCallback(TObexResponse aResponseCode);
   105     IMPORT_C TInt RequestCompleteIndicationCallback(TInt aErrorCode);
   102     IMPORT_C TInt RequestCompleteIndicationCallback(TInt aErrorCode);
   106     // @publishedPartner
   103 
   107 	IMPORT_C TInt PacketHeaders(CObexHeaderSet*& aHeaderSet);
   104 	IMPORT_C TInt PacketHeaders(CObexHeaderSet*& aHeaderSet);
   108 	IMPORT_C TInt PacketHeaders(CObexHeaderSet*& aHeaderSet, MObexHeaderCheck& aHeaderCheck);
   105 	IMPORT_C TInt PacketHeaders(CObexHeaderSet*& aHeaderSet, MObexHeaderCheck& aHeaderCheck);
   109 	IMPORT_C void SetReadActivityObserver(MObexReadActivityObserver* aObserver);
   106 	IMPORT_C void SetReadActivityObserver(MObexReadActivityObserver* aObserver);
   110 	// @internalTechnology
   107 
   111 	IMPORT_C TAny* ExtensionInterfaceL(TUid aUid);
   108 	IMPORT_C TAny* ExtensionInterfaceL(TUid aUid);
   112 	IMPORT_C const TObexTransportInfo* TransportInfo() const;
   109 	IMPORT_C const TObexTransportInfo* TransportInfo() const;
   113 
   110 
   114 public:
   111 public:
   115 	// Called from CObexNotifyExtendServer
   112 	// Called from CObexNotifyExtendServer
   116 	void SignalPacketProcessEvent(TObexPacketProcessEvent aEvent);
   113 	void SignalPacketProcessEvent(TInt aEvent);
   117 	
   114 	
   118 	// Unexported functions used by the Server state machine
   115 	// Unexported functions used by the Server state machine
   119 	TBool CheckObjectForConnectionId(CObexBaseObject& aObject);
   116 	TBool CheckObjectForConnectionId(CObexBaseObject& aObject);
   120 	TBool CheckPacketForConnectionId(CObexPacket& aObject);
   117 	TBool CheckPacketForConnectionId(CObexPacket& aObject);
   121 
   118 
   689 	virtual void CancelIndicationCallback() =0;
   686 	virtual void CancelIndicationCallback() =0;
   690 	};
   687 	};
   691 
   688 
   692 
   689 
   693 #endif	// __OBEXSERVER_H
   690 #endif	// __OBEXSERVER_H
       
   691 
       
   692