|
1 /* |
|
2 * Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "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 * Kanrikogaku Kenkyusho, Ltd. - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * {Description of the file} |
|
16 * |
|
17 */ |
|
18 |
|
19 // Protection against nested includes |
|
20 #ifndef __DIRECTPRINTSETTINGLISTBOX_H__ |
|
21 #define __DIRECTPRINTSETTINGLISTBOX_H__ |
|
22 |
|
23 // System includes |
|
24 #include <aknsettingitemlist.h> |
|
25 |
|
26 // User includes |
|
27 #include "directprintsettinglistobserver.h" |
|
28 |
|
29 // Class declaration |
|
30 /** |
|
31 * Setting listbox class |
|
32 * more_complete_description |
|
33 */ |
|
34 class CDirectPrintSettingListBox : public CAknSettingItemList |
|
35 { |
|
36 public: |
|
37 /** Constructors */ |
|
38 static CDirectPrintSettingListBox* NewL(const TRect& aRect); |
|
39 static CDirectPrintSettingListBox* NewLC(const TRect& aRect); |
|
40 /** Destructor */ |
|
41 virtual ~CDirectPrintSettingListBox(); |
|
42 |
|
43 public: // from CAknSettingItemList |
|
44 // CAknSettingItem* CreateSettingItemL(TInt identifier); |
|
45 /** |
|
46 * Set focus. |
|
47 * |
|
48 * @param aIndex The index of listbox item |
|
49 * @param aCalledFromMenu The flag of called from menu |
|
50 */ |
|
51 void EditItemL(TInt aIndex, TBool aCalledFromMenu); |
|
52 |
|
53 public: // New function |
|
54 /** |
|
55 * Set list observer. |
|
56 * |
|
57 * @param aObserver Pointer to list observer. |
|
58 */ |
|
59 void SetSettingListObserver(MDirectPrintSettingListObserver* aObserver); |
|
60 |
|
61 private: |
|
62 CDirectPrintSettingListBox(); |
|
63 void ConstructL(const TRect& aRect); |
|
64 |
|
65 private: |
|
66 /** Pointer to list observer. */ |
|
67 MDirectPrintSettingListObserver* iObserver; |
|
68 }; |
|
69 |
|
70 #endif // __DIRECTPRINTSETTINGLISTBOX_H__ |