|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Name : csipunregistered.cpp |
|
15 // Part of : SIP Registration |
|
16 // Version : SIP/4.0 |
|
17 // |
|
18 |
|
19 |
|
20 |
|
21 #include "csipunregistered.h" |
|
22 #include "SipAssert.h" |
|
23 |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CSIPUnregistered::NewL |
|
27 // ----------------------------------------------------------------------------- |
|
28 // |
|
29 CSIPUnregistered* CSIPUnregistered::NewL(MRegistrationContext& aRegistration) |
|
30 { |
|
31 CSIPUnregistered* self = CSIPUnregistered::NewLC(aRegistration); |
|
32 CleanupStack::Pop(self); |
|
33 return self; |
|
34 } |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // CSIPUnregistered::NewLC |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 CSIPUnregistered* CSIPUnregistered::NewLC(MRegistrationContext& aRegistration) |
|
41 { |
|
42 CSIPUnregistered* self = new (ELeave) CSIPUnregistered (aRegistration); |
|
43 CleanupStack::PushL(self); |
|
44 return self; |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CSIPUnregistered::~CSIPUnregistered |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 CSIPUnregistered::~CSIPUnregistered() |
|
52 { |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // CSIPUnregistered::TransactionEnded |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 TInt CSIPUnregistered::TransactionEnded(TTransactionId aTransactionId, |
|
60 TInt aReason) |
|
61 { |
|
62 // pass error to owner. |
|
63 return (PassErrorToOwner(aReason, aTransactionId, |
|
64 iRegistration.RegistrationId())); |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // CSIPUnregistered::CSIPUnregistered |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 CSIPUnregistered::CSIPUnregistered(MRegistrationContext& aRegistration) |
|
72 : CSIPRegistrationState (aRegistration) |
|
73 { |
|
74 } |