|
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: Model decorator for double listbox (Social phonebook) |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPBK2DOUBLELISTBOXMODELCMDDECORATOR_H_ |
|
19 #define CPBK2DOUBLELISTBOXMODELCMDDECORATOR_H_ |
|
20 |
|
21 // internal |
|
22 #include "cpbk2listboxmodelcmddecorator.h" |
|
23 |
|
24 class CPbk2ContactViewDoubleListboxDataElement; |
|
25 |
|
26 /* |
|
27 * Decorator for double listbox |
|
28 */ |
|
29 NONSHARABLE_CLASS( CPbk2DoubleListboxModelCmdDecorator ) : public CPbk2ListboxModelCmdDecorator |
|
30 { |
|
31 public: //constructor & destructor |
|
32 /** |
|
33 * Constructs the object. |
|
34 */ |
|
35 static CPbk2DoubleListboxModelCmdDecorator* NewL( |
|
36 const CPbk2IconArray& aIconArray, |
|
37 TPbk2IconId aEmptyIconId, |
|
38 TPbk2IconId aDefaultIconId ); |
|
39 |
|
40 ~CPbk2DoubleListboxModelCmdDecorator(); |
|
41 |
|
42 |
|
43 public: |
|
44 // see CPbk2ListboxModelCmdDecorator |
|
45 TPtrC MdcaPoint( TInt aIndex ) const; |
|
46 |
|
47 private: // new methods |
|
48 /** |
|
49 * Append text into line buffer. Removes |
|
50 * illegal characters from the aText before appending. aText is subject to |
|
51 * modifications during this call. |
|
52 * |
|
53 * @param aText text to append into line buffer |
|
54 */ |
|
55 void AppendText( TDes& aText ) const; |
|
56 |
|
57 private: // constructors |
|
58 |
|
59 void ConstructL(); |
|
60 |
|
61 CPbk2DoubleListboxModelCmdDecorator( |
|
62 const CPbk2IconArray& aIconArray, |
|
63 TPbk2IconId aEmptyIconId, |
|
64 TPbk2IconId aDefaultIconId); |
|
65 |
|
66 private: // data |
|
67 |
|
68 /// Own. Listbox data element |
|
69 CPbk2ContactViewDoubleListboxDataElement* iElement; |
|
70 }; |
|
71 |
|
72 #endif /* CPBK2DOUBLELISTBOXMODELCMDDECORATOR_H_ */ |