homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hssearchviewbuilder.h
changeset 71 1db7cc813a4e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hssearchviewbuilder.h	Fri Aug 06 13:36:36 2010 +0300
@@ -0,0 +1,54 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description: Menu View Builder
+ *
+ */
+
+#ifndef HSSEARCHVIEWBUILDER_H_
+#define HSSEARCHVIEWBUILDER_H_
+
+#include <HbDocumentLoader>
+#include "hsmenustates_global.h"
+
+class HbSearchPanel;
+class HbView;
+class HbListView;
+class HbGroupBox;
+
+HS_STATES_TEST_CLASS(MenuStatesTest)
+
+class HsSearchViewBuilder
+{
+
+    HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
+
+public:
+    HsSearchViewBuilder();
+    virtual ~HsSearchViewBuilder();
+
+    HbView *searchView();
+    HbListView *searchListView();
+    HbSearchPanel *searchPanel();
+    HbGroupBox *searchViewLabel();
+    void setSearchLabledContext();
+    bool loadViewEmptySection();
+    bool loadViewListSection();
+
+private:
+    QSet<QObject *> mLoadedObjects;
+    QSharedPointer<HbDocumentLoader> mLoader;
+    bool mLabledContext;
+};
+
+#endif /* HSSEARCHVIEWBUILDER_H_ */