|
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 MMSRPSERVERINTERFACE_H_ |
|
18 #define MMSRPSERVERINTERFACE_H_ |
|
19 |
|
20 |
|
21 // INCLUDES |
|
22 #include "MsrpCommon.h" |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * An interface to be implemented by RMSRPSession class |
|
30 * Interface allows communication to and from the MSRP server |
|
31 */ |
|
32 class MMSRPServerInterface |
|
33 { |
|
34 public: |
|
35 |
|
36 virtual void GetLocalPathL( TDes8 &aLocalHost, |
|
37 TDes8 &aSessionID ) = 0; |
|
38 |
|
39 virtual void Connect( const TDesC8& aRemoteHost, |
|
40 const TUint aRemotePort, |
|
41 const TDesC8& aRemoteSessionID, |
|
42 TRequestStatus& aStatus ) = 0; |
|
43 |
|
44 virtual void ListenConnections( const TDesC8& aRemoteHost, |
|
45 const TUint aRemotePort, |
|
46 const TDesC8& aRemoteSessionID, |
|
47 TBool aIsMessage, |
|
48 TRequestStatus& aStatus ) = 0; |
|
49 |
|
50 virtual void ListenMessages( TBool aIsMessage, |
|
51 TRequestStatus& aStatus ) = 0; |
|
52 |
|
53 virtual void ListenSendResult( const TDesC8& aSessionID, |
|
54 TRequestStatus& aStatus) = 0; |
|
55 |
|
56 virtual TInt SendMessage( TDesC8& aMessageBuffer ) = 0; |
|
57 |
|
58 virtual TInt CancelSending( TDesC8& aMessageId ) = 0; |
|
59 |
|
60 virtual void CancelReceiving( ) = 0; |
|
61 virtual void CancelSendResultListening( ) = 0; |
|
62 |
|
63 virtual const TDesC8& GetMessageIdOfSentMessage() const = 0 ; |
|
64 virtual TInt GetStatusOfSentMessage() const = 0 ; |
|
65 virtual TInt GetStatusOfReceivedMessage() const = 0; |
|
66 virtual const TDesC8& GetReceivedMessage() const = 0; |
|
67 |
|
68 virtual TBool GetListenProgress() const = 0; |
|
69 virtual TInt GetBytesReceived() const = 0; |
|
70 virtual TInt GetTotalBytesReceived() const = 0; |
|
71 |
|
72 virtual TBool GetSendProgress() const = 0; |
|
73 virtual TInt GetBytesSent() const = 0; |
|
74 virtual TInt GetTotalBytes() const = 0; |
|
75 |
|
76 }; |
|
77 |
|
78 #endif /* MMSRPSERVERINTERFACE_H_ */ |