71
|
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: Menu View Builder
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef HSSEARCHVIEWBUILDER_H_
|
|
19 |
#define HSSEARCHVIEWBUILDER_H_
|
|
20 |
|
|
21 |
#include <HbDocumentLoader>
|
|
22 |
#include "hsmenustates_global.h"
|
|
23 |
|
|
24 |
class HbSearchPanel;
|
|
25 |
class HbView;
|
|
26 |
class HbListView;
|
|
27 |
class HbGroupBox;
|
|
28 |
|
|
29 |
HS_STATES_TEST_CLASS(MenuStatesTest)
|
|
30 |
|
|
31 |
class HsSearchViewBuilder
|
|
32 |
{
|
|
33 |
|
|
34 |
HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
|
|
35 |
|
|
36 |
public:
|
|
37 |
HsSearchViewBuilder();
|
|
38 |
virtual ~HsSearchViewBuilder();
|
|
39 |
|
|
40 |
HbView *searchView();
|
|
41 |
HbListView *searchListView();
|
|
42 |
HbSearchPanel *searchPanel();
|
|
43 |
HbGroupBox *searchViewLabel();
|
|
44 |
void setSearchLabledContext();
|
|
45 |
bool loadViewEmptySection();
|
|
46 |
bool loadViewListSection();
|
|
47 |
|
|
48 |
private:
|
|
49 |
QSet<QObject *> mLoadedObjects;
|
|
50 |
QSharedPointer<HbDocumentLoader> mLoader;
|
|
51 |
bool mLabledContext;
|
|
52 |
};
|
|
53 |
|
|
54 |
#endif /* HSSEARCHVIEWBUILDER_H_ */
|