|
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 __PRINTERLISTVIEW_H__ |
|
21 #define __PRINTERLISTVIEW_H__ |
|
22 |
|
23 // System includes |
|
24 #include <aknlists.h> |
|
25 #include <akntoolbarobserver.h> |
|
26 |
|
27 // User includes |
|
28 #include "DirectPrintViewBase.h" |
|
29 #include "DirectPrintListBox.h" |
|
30 |
|
31 // Class declaration |
|
32 /** |
|
33 * List view class |
|
34 * more_complete_description |
|
35 */ |
|
36 class CDirectPrintListView : public CDirectPrintViewBase, public MAknToolbarObserver |
|
37 { |
|
38 public: |
|
39 /** Constructors */ |
|
40 static CDirectPrintListView* NewL(); |
|
41 static CDirectPrintListView* NewLC(); |
|
42 /** Destructor */ |
|
43 ~CDirectPrintListView(); |
|
44 |
|
45 public: |
|
46 /** |
|
47 * From CAknView. |
|
48 * Handles user commands. |
|
49 * |
|
50 * @param aCommand The id of commands. |
|
51 */ |
|
52 void HandleCommandL(TInt aCommand); |
|
53 |
|
54 public: |
|
55 /** |
|
56 * From MDirectPrintListObserver. |
|
57 * Handles index. |
|
58 * |
|
59 * @param aIndex The index of list items. |
|
60 */ |
|
61 void HandleListIndexL(TInt aIndex); |
|
62 |
|
63 public: // from MAknToolbarObserver |
|
64 /** |
|
65 * From MAknToolbarObserver. |
|
66 * Handles user commands. |
|
67 * |
|
68 * @param aCommand The id of commands. |
|
69 */ |
|
70 void OfferToolbarEventL(TInt aCommand); |
|
71 |
|
72 protected: // from CAknView |
|
73 void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage); |
|
74 void DoDeactivate(); |
|
75 |
|
76 private: |
|
77 CDirectPrintListView(); |
|
78 void ConstructL(); |
|
79 |
|
80 void LoadListDataL(); |
|
81 void PrepareNewDataL(); |
|
82 |
|
83 private: |
|
84 /** Pointer to listbox. */ |
|
85 CDirectPrintListBox* iListBox; // Owend Data |
|
86 /** Pointer to item array. */ |
|
87 CDesCArray* iItemArray; |
|
88 }; |
|
89 |
|
90 #endif // __PRINTERLISTVIEW_H__ |