|
1 /* |
|
2 * Copyright (c) 2002-2005 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 |
|
22 |
|
23 |
|
24 |
|
25 // INCLUDE FILES |
|
26 #include "SenIdentityProviderIdArray8.h" |
|
27 |
|
28 |
|
29 EXPORT_C CSenIdentityProviderIdArray8* CSenIdentityProviderIdArray8::NewL() |
|
30 { |
|
31 CSenIdentityProviderIdArray8* pNew = NewLC(); |
|
32 CleanupStack::Pop(); |
|
33 return(pNew) ; |
|
34 } |
|
35 |
|
36 EXPORT_C CSenIdentityProviderIdArray8* CSenIdentityProviderIdArray8::NewLC() |
|
37 { |
|
38 // without an argument, a non-strict array is created: |
|
39 CSenIdentityProviderIdArray8* pNew = |
|
40 new (ELeave) CSenIdentityProviderIdArray8(EFalse); |
|
41 |
|
42 CleanupStack::PushL(pNew); |
|
43 pNew->ConstructL(); |
|
44 return pNew; |
|
45 } |
|
46 |
|
47 EXPORT_C CSenIdentityProviderIdArray8* CSenIdentityProviderIdArray8::NewL( |
|
48 const TBool aStrict) |
|
49 { |
|
50 CSenIdentityProviderIdArray8* pNew = NewLC(aStrict); |
|
51 CleanupStack::Pop(); |
|
52 return(pNew) ; |
|
53 } |
|
54 |
|
55 EXPORT_C CSenIdentityProviderIdArray8* CSenIdentityProviderIdArray8::NewLC( |
|
56 const TBool aStrict) |
|
57 { |
|
58 CSenIdentityProviderIdArray8* pNew = |
|
59 new (ELeave) CSenIdentityProviderIdArray8(aStrict); |
|
60 CleanupStack::PushL(pNew); |
|
61 pNew->ConstructL(); |
|
62 return pNew; |
|
63 } |
|
64 |
|
65 |
|
66 void CSenIdentityProviderIdArray8::ConstructL() |
|
67 { |
|
68 } |
|
69 |
|
70 CSenIdentityProviderIdArray8::CSenIdentityProviderIdArray8(const TBool aStrict) |
|
71 : CDesC8ArraySeg(5), |
|
72 iStrict(aStrict) |
|
73 { |
|
74 } |
|
75 |
|
76 // destructor |
|
77 EXPORT_C CSenIdentityProviderIdArray8::~CSenIdentityProviderIdArray8() |
|
78 { |
|
79 |
|
80 } |
|
81 |
|
82 EXPORT_C TBool CSenIdentityProviderIdArray8::IsStrict() const |
|
83 { |
|
84 return iStrict; |
|
85 } |
|
86 |
|
87 EXPORT_C void CSenIdentityProviderIdArray8::SetStrict(TBool aStrict) |
|
88 { |
|
89 iStrict = aStrict; |
|
90 } |
|
91 // End of File |