mmsharing/mmshavailability/tsrc/ut_availability/Stubs/src/Csipclienttransaction.cpp
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "sipclienttransaction.h" |
|
19 #include "sipresponseelements.h" |
|
20 #include "sipstrings.h" |
|
21 #include "SipStrConsts.h" |
|
22 |
|
23 |
|
24 EXPORT_C CSIPClientTransaction::~CSIPClientTransaction() |
|
25 { |
|
26 delete iE; |
|
27 } |
|
28 |
|
29 |
|
30 CSIPClientTransaction::CSIPClientTransaction( RStringF aType ) |
|
31 :CSIPTransactionBase( aType, ETrue ) |
|
32 { |
|
33 iIsCancelAllowed = ETrue; |
|
34 } |
|
35 |
|
36 |
|
37 EXPORT_C CSIPClientTransaction* CSIPClientTransaction::NewL( RStringF aType ) |
|
38 { |
|
39 return new (ELeave) CSIPClientTransaction( aType ); |
|
40 } |
|
41 |
|
42 EXPORT_C void CSIPClientTransaction::SetResponseElements(CSIPResponseElements* aE) |
|
43 { |
|
44 if (iE) |
|
45 delete iE; |
|
46 iE = aE; |
|
47 |
|
48 } |
|
49 |
|
50 EXPORT_C const CSIPResponseElements* CSIPClientTransaction::ResponseElements() const |
|
51 { |
|
52 return iE; |
|
53 } |
|
54 |
|
55 EXPORT_C TBool CSIPClientTransaction::CancelAllowed() const |
|
56 { |
|
57 return iIsCancelAllowed; |
|
58 } |
|
59 |
|
60 |
|
61 EXPORT_C CSIPClientTransaction* CSIPClientTransaction::CancelL() |
|
62 { |
|
63 return CSIPClientTransaction::NewL( SIPStrings::StringF( SipStrConsts::ECancel ) ); |
|
64 } |