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 #include "CMSRPMessageChunkState.h" |
|
18 |
|
19 |
|
20 EXPORT_C CMSRPMessageChunkState* CMSRPMessageChunkState::NewL( ) |
|
21 { |
|
22 CMSRPMessageChunkState* self = new (ELeave) CMSRPMessageChunkState( ); |
|
23 CleanupStack::PushL( self ); |
|
24 // self->ConstructL( ); |
|
25 CleanupStack::Pop( self ); |
|
26 return self; |
|
27 } |
|
28 |
|
29 |
|
30 EXPORT_C CMSRPMessageChunkState::~CMSRPMessageChunkState() |
|
31 { |
|
32 // MSRPStrings::Close(); |
|
33 } |
|
34 |
|
35 CMSRPMessageChunkState::CMSRPMessageChunkState( ) |
|
36 { |
|
37 } |
|
38 /* |
|
39 void CMSRPMessageChunkState::ConstructL( ) |
|
40 { |
|
41 |
|
42 } |
|
43 */ |
|
44 EXPORT_C void CMSRPMessageChunkState::SetStartPos(TInt aStartPos) |
|
45 { |
|
46 iStartPos = aStartPos ; |
|
47 } |
|
48 |
|
49 EXPORT_C TInt CMSRPMessageChunkState::GetStartPos( ) |
|
50 { |
|
51 return iStartPos; |
|
52 } |
|
53 |
|
54 EXPORT_C void CMSRPMessageChunkState::SetEndPos(TInt aEndPos) |
|
55 { |
|
56 iEndPos = aEndPos ; |
|
57 } |
|
58 |
|
59 EXPORT_C TInt CMSRPMessageChunkState::GetEndPos( ) |
|
60 { |
|
61 return iEndPos; |
|
62 } |
|
63 |
|
64 EXPORT_C TBool CMSRPMessageChunkState::GetResponseReceived() |
|
65 { |
|
66 if(iResponseReceived) |
|
67 return ETrue; |
|
68 else |
|
69 return EFalse; |
|
70 |
|
71 } |
|
72 |
|
73 EXPORT_C void CMSRPMessageChunkState::SetResponseReceived(TBool aResponseReceived) |
|
74 { |
|
75 iResponseReceived = aResponseReceived; |
|
76 } |
|
77 |
|
78 EXPORT_C TDesC8& CMSRPMessageChunkState::GetTransactionId( ) |
|
79 { |
|
80 return iTransactionId; |
|
81 } |
|
82 |
|
83 EXPORT_C void CMSRPMessageChunkState::SetTransactionId(TDesC8& aTransactionId ) |
|
84 { |
|
85 iTransactionId = aTransactionId ; |
|
86 } |
|
87 |
|
88 EXPORT_C void CMSRPMessageChunkState::SetResponseSent(TBool aResponseSent) |
|
89 { |
|
90 iResponseSent = aResponseSent; |
|
91 } |
|
92 |
|
93 EXPORT_C TBool CMSRPMessageChunkState::GetResponseSent( ) |
|
94 { |
|
95 if(iResponseSent) |
|
96 return ETrue; |
|
97 else |
|
98 return EFalse; |
|
99 } |
|