|
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 __SEARCHRESULTVIEW_H__ |
|
21 #define __SEARCHRESULTVIEW_H__ |
|
22 |
|
23 // System includes |
|
24 #include <aknlists.h> |
|
25 #include <akntoolbarobserver.h> |
|
26 #include <AknProgressDialog.h> // CAknProgressDialog |
|
27 #include <EIKPROGI.H> |
|
28 |
|
29 // User includes |
|
30 #include "DirectPrintViewBase.h" |
|
31 #include "DirectPrintListBox.h" |
|
32 |
|
33 // Class declaration |
|
34 /** |
|
35 * Search result view class |
|
36 * more_complete_description |
|
37 */ |
|
38 class CDirectPrintSearchResultView : public CDirectPrintViewBase |
|
39 , public MAknToolbarObserver |
|
40 , public MProgressDialogCallback |
|
41 { |
|
42 public: |
|
43 /** Constructors */ |
|
44 static CDirectPrintSearchResultView* NewL(); |
|
45 static CDirectPrintSearchResultView* NewLC(); |
|
46 /** Destructor */ |
|
47 ~CDirectPrintSearchResultView(); |
|
48 |
|
49 public: |
|
50 /** |
|
51 * From CAknView. |
|
52 * Handles user commands. |
|
53 * |
|
54 * @param aCommand The id of commands. |
|
55 */ |
|
56 void HandleCommandL(TInt aCommand); |
|
57 |
|
58 public: |
|
59 /** |
|
60 * From MDirectPrintListObserver. |
|
61 * Handles index. |
|
62 * |
|
63 * @param aIndex The index of list items. |
|
64 */ |
|
65 void HandleListIndexL(TInt aIndex); |
|
66 |
|
67 public: |
|
68 /** |
|
69 * From MAknToolbarObserver. |
|
70 * Handles user commands. |
|
71 * |
|
72 * @param aCommand The id of commands. |
|
73 */ |
|
74 void OfferToolbarEventL(TInt aCommand); |
|
75 |
|
76 public: // from MProgressDialogCallback |
|
77 /** |
|
78 * DialogDismissedL |
|
79 * Called when/if the dialog has been dismissed. |
|
80 * @param aButtonId |
|
81 */ |
|
82 void DialogDismissedL( TInt aButtonId ); |
|
83 |
|
84 protected: // from CAknView |
|
85 void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage); |
|
86 void DoDeactivate(); |
|
87 |
|
88 private: |
|
89 CDirectPrintSearchResultView(); |
|
90 void ConstructL(); |
|
91 |
|
92 void StartSearchProgressNoteL(); |
|
93 void EndProgressNoteL(); |
|
94 |
|
95 void StartSearchL(); |
|
96 |
|
97 static TInt HandleTimeout(TAny* aAny); |
|
98 void HandleTimeoutL(); |
|
99 |
|
100 private: |
|
101 /** Pointer to listbox. */ |
|
102 CDirectPrintListBox* iListBox; // Owend Data |
|
103 /** Pointer to array. */ |
|
104 CDesCArray* iItemArray; |
|
105 |
|
106 /** |
|
107 * iProgressDialog |
|
108 * Owned |
|
109 */ |
|
110 CAknProgressDialog* iProgressDialog; |
|
111 /** |
|
112 * iProgressInfo |
|
113 * Not owned by CAknExNoteContainer object. |
|
114 */ |
|
115 CEikProgressInfo* iProgressInfo; |
|
116 /** Pointer to progress message. */ |
|
117 HBufC* iProgressMessage; |
|
118 /** Pointer to periodic timer object. */ |
|
119 CPeriodic* iPeriodic; |
|
120 |
|
121 /** Count of timeout. */ |
|
122 TInt iTimeoutCount; |
|
123 }; |
|
124 |
|
125 #endif // __SEARCHRESULTVIEW_H__ |