|
1 /* |
|
2 * Copyright (c) 2006-2007 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 |
|
19 |
|
20 |
|
21 #include "natfwunsafsendindication.h" |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // CNATFWUNSAFSendIndication::NewL |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 EXPORT_C CNATFWUNSAFSendIndication* |
|
28 CNATFWUNSAFSendIndication::NewL( |
|
29 const TNATFWUNSAFTransactionID& aTransactionID) |
|
30 { |
|
31 CNATFWUNSAFSendIndication* self = CNATFWUNSAFSendIndication::NewLC( |
|
32 aTransactionID); |
|
33 CleanupStack::Pop(self); |
|
34 return self; |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // CNATFWUNSAFSendIndication::NewLC |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 EXPORT_C CNATFWUNSAFSendIndication* |
|
42 CNATFWUNSAFSendIndication::NewLC( |
|
43 const TNATFWUNSAFTransactionID& aTransactionID) |
|
44 { |
|
45 CNATFWUNSAFSendIndication* self = |
|
46 new (ELeave) CNATFWUNSAFSendIndication(aTransactionID); |
|
47 CleanupStack::PushL(self); |
|
48 return self; |
|
49 } |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // CNATFWUNSAFSendIndication::CreateL |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 CNATFWUNSAFMessage* |
|
56 CNATFWUNSAFSendIndication::CreateL( |
|
57 const TNATFWUNSAFTransactionID& aTransactionID) |
|
58 { |
|
59 return NewL(aTransactionID); |
|
60 } |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // CNATFWUNSAFSendIndication::CNATFWUNSAFSendIndication |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 CNATFWUNSAFSendIndication::CNATFWUNSAFSendIndication( |
|
67 const TNATFWUNSAFTransactionID& aTransactionID) : |
|
68 CNATFWUNSAFMessage(aTransactionID) |
|
69 { |
|
70 } |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // CNATFWUNSAFSendIndication::~CNATFWUNSAFSendIndication |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 CNATFWUNSAFSendIndication::~CNATFWUNSAFSendIndication() |
|
77 { |
|
78 } |
|
79 |
|
80 // ----------------------------------------------------------------------------- |
|
81 // CNATFWUNSAFSendIndication::Type |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 CNATFWUNSAFMessage::TType CNATFWUNSAFSendIndication::Type() const |
|
85 { |
|
86 return CNATFWUNSAFMessage::ESendIndication; |
|
87 } |
|
88 |
|
89 // ----------------------------------------------------------------------------- |
|
90 // CNATFWUNSAFSendIndication::Validate |
|
91 // ----------------------------------------------------------------------------- |
|
92 // |
|
93 TBool CNATFWUNSAFSendIndication::Validate() const |
|
94 { |
|
95 return ETrue; |
|
96 } |
|
97 |
|
98 // ----------------------------------------------------------------------------- |
|
99 // CNATFWUNSAFSendIndication::IsAllowed |
|
100 // ----------------------------------------------------------------------------- |
|
101 // |
|
102 TBool CNATFWUNSAFSendIndication::IsAllowed(TUint16 aAttributeType) const |
|
103 { |
|
104 return (aAttributeType == CNATFWUNSAFAttribute::EData || |
|
105 aAttributeType == CNATFWUNSAFAttribute::ERemoteAddress || |
|
106 aAttributeType == CNATFWUNSAFAttribute::EFingerprint); |
|
107 } |