|
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: Wrapper of HBufC Array. |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE |
|
19 #include "hbufcarray.h" |
|
20 |
|
21 // --------------------------------------------------------------------------- |
|
22 // Symbian Constructor |
|
23 // --------------------------------------------------------------------------- |
|
24 // |
|
25 CHBufCArray* CHBufCArray::NewL() |
|
26 { |
|
27 CHBufCArray* self = CHBufCArray::NewLC(); |
|
28 CleanupStack::Pop( self ); // self; |
|
29 return self; |
|
30 } |
|
31 |
|
32 // --------------------------------------------------------------------------- |
|
33 // Symbian Constructor. |
|
34 // --------------------------------------------------------------------------- |
|
35 // |
|
36 CHBufCArray* CHBufCArray::NewLC() |
|
37 { |
|
38 CHBufCArray* self = new (ELeave) CHBufCArray(); |
|
39 CleanupStack::PushL( self ); |
|
40 self->ConstructL(); |
|
41 return self; |
|
42 } |
|
43 |
|
44 // --------------------------------------------------------------------------- |
|
45 // c++ destructor |
|
46 // --------------------------------------------------------------------------- |
|
47 // |
|
48 CHBufCArray::~CHBufCArray() |
|
49 { |
|
50 iHBufCArray.ResetAndDestroy(); |
|
51 iHBufCArray.Close(); |
|
52 } |
|
53 |
|
54 // --------------------------------------------------------------------------- |
|
55 // get array. |
|
56 // --------------------------------------------------------------------------- |
|
57 // |
|
58 RPointerArray<HBufC>& CHBufCArray::Array() |
|
59 { |
|
60 return iHBufCArray; |
|
61 } |
|
62 |
|
63 // --------------------------------------------------------------------------- |
|
64 // c++ constructor. |
|
65 // --------------------------------------------------------------------------- |
|
66 // |
|
67 CHBufCArray::CHBufCArray() |
|
68 { |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------------------------- |
|
72 // Symbian second-phase constructor. |
|
73 // --------------------------------------------------------------------------- |
|
74 // |
|
75 void CHBufCArray::ConstructL() |
|
76 { |
|
77 } |
|
78 |
|
79 // End Of File |