--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/piprofilerui/ui/hb/inc/pimainwindow.h Tue May 25 12:43:15 2010 +0300
@@ -0,0 +1,109 @@
+/*
+* Copyright (c) 2010 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:
+*
+*/
+
+#ifndef PIPROFILERMAINWINDOW_H_
+#define PIPROFILERMAINWINDOW_H_
+
+// System includes
+#include <QObject.h>
+#include <hbmainwindow.h>
+
+// User includes
+#include "pluginattributes.h"
+
+// Forward declarations
+class PIMainView;
+class PISettingsView;
+class PIProfilerEngine;
+class HbDocumentLoader;
+class HbApplication;
+
+// Class declaration
+class PIMainWindow: public HbMainWindow
+{
+Q_OBJECT
+public:
+
+ // Member functions
+
+ PIMainWindow(PIProfilerEngine* engine, HbDocumentLoader &loader, HbApplication *app);
+ virtual ~PIMainWindow();
+
+signals:
+
+ /**
+ * Signal that is emitted when back button is pressed at settings view
+ */
+ void returnedFromSettings();
+
+public slots:
+
+ /**
+ * Activates main view
+ */
+ void activateMainView();
+
+ /**
+ * Activates settings view
+ */
+ void activateSettingsView(int uid = 0);
+
+ /**
+ * method that is called when back button pressed at settings view
+ */
+ void settingsViewClosed();
+
+ /**
+ * Sets and new plugin list to all views
+ */
+ void setPluginList(QList<PluginAttributes> &pluginList);
+
+private:
+
+ /**
+ * creates and adds main view to window
+ */
+ void addMainView(HbDocumentLoader &loader, HbApplication *app);
+
+ /**
+ * creates and adds settings view to main window
+ */
+ void addSettingsView();
+
+private slots:
+
+private:
+ // data
+
+ // Engine wrapper
+ PIProfilerEngine* mEngine;
+
+ // Main view
+ PIMainView* mMainView;
+
+ // Settings view
+ PISettingsView* mSettingsView;
+
+ // Back Action
+ HbAction *mBackAction;
+
+ // plug-in attributes
+ QList<PluginAttributes> mPluginAttributes;
+
+};
+
+#endif /* PIPROFILERMAINWINDOW_H_ */