first Qt-based client version
Refs #68886
Change-Id: I69b44506dc52a18c47f102466472c68fbf08600b
diff --git a/navstack.h b/navstack.h
new file mode 100644
index 0000000..b9ee234
--- /dev/null
+++ b/navstack.h
@@ -0,0 +1,53 @@
+/***************************************************************************
+ * Copyright (C) 2011-2015 by Savoir-Faire Linux *
+ * Author: Edric Ladent Milaret <edric.ladent-milaret@savoirfairelinux.com>*
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 3 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. *
+ **************************************************************************/
+
+#ifndef NAVSTACK_H
+#define NAVSTACK_H
+
+#include <QStackedWidget>
+#include <QStack>
+
+#include "navwidget.h"
+#include "configurationwidget.h"
+#include "mainbar.h"
+#include "navbar.h"
+#include "callwidget.h"
+#include "pivotviewwidget.h"
+
+class NavStack : public QWidget
+{
+ Q_OBJECT
+public:
+ NavStack(QStackedWidget* bar,
+ QStackedWidget* stack,
+ QWidget* parent = nullptr);
+ ~NavStack();
+
+public slots:
+ void onNavigationRequested(ScreenEnum screen);
+ void onBackRequested();
+
+private:
+ QStackedWidget* bar_;
+ QStackedWidget* stack_;
+ QList<NavWidget*> navList_;
+ QStack<ScreenEnum> stackNav_;
+ void setNavBar(NavWidget *navW);
+};
+
+#endif // NAVSTACK_H