equal
deleted
inserted
replaced
|
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 MMSRPMESSAGEHANDLER_H_ |
|
18 #define MMSRPMESSAGEHANDLER_H_ |
|
19 |
|
20 // INCLUDES |
|
21 |
|
22 |
|
23 // CLASS DECLARATIONS |
|
24 |
|
25 /* MSRP Message request interface |
|
26 * |
|
27 */ |
|
28 class MMSRPMessageHandler |
|
29 { |
|
30 public: |
|
31 |
|
32 enum TMsrpHeaderType |
|
33 { |
|
34 EHeaderUnknown = -1, |
|
35 EToPath, |
|
36 EFromPath, |
|
37 EMessageId, |
|
38 ESuccessReport, |
|
39 EFailureReport, |
|
40 EByteRange, |
|
41 EContentType, |
|
42 EStatus, |
|
43 EExtenstion |
|
44 }; |
|
45 |
|
46 enum TMsrpMsgEndStatus |
|
47 { |
|
48 EMessageEnd, // $ |
|
49 EMessageContinues, // + |
|
50 EMessageTerminated // # |
|
51 }; |
|
52 |
|
53 inline virtual ~MMSRPMessageHandler(){} |
|
54 |
|
55 virtual void AddHeaderL( TMsrpHeaderType aHeaderType, TPtrC8& aHeaderValue, TPtrC8& aHeaderTypeAndValue ) = 0; |
|
56 |
|
57 virtual void AddContentL( TPtrC8& aContent ) = 0; |
|
58 |
|
59 virtual void SetTransactionId( TPtrC8& aTransactionId ) = 0; |
|
60 |
|
61 virtual void SetStatusOfResponseL( TPtrC8& aStatusCode, TPtrC8& aStatusMessage ) = 0; |
|
62 |
|
63 virtual void EndOfMessageL( TMsrpMsgEndStatus aStatus ) = 0; |
|
64 |
|
65 }; |
|
66 |
|
67 #endif /* MMSRPMESSAGEHANDLER_H_ */ |