2 * dialer - Declarative Dialer UX Main Window.
3 * Copyright (c) 2011, Tom Swindell.
5 * This program is licensed under the terms and conditions of the
6 * Apache License, version 2.0. The full text of the Apache License is at
7 * http://www.apache.org/licenses/LICENSE-2.0
11 #ifndef QMLMAINWINDOW_H
12 #define QMLMAINWINDOW_H
14 #include <QDeclarativeView>
15 #include <QDeclarativeComponent>
16 #include "qmldialer.h"
19 class QMLMainWindowPrivate;
21 class QMLMainWindow : public QDeclarativeView
26 static QMLMainWindow* instance();
27 static QMLMainWindow* instanceP(QWidget* parent);
34 void setAdapter(QMLDialer *adapter); //TODO: Refactor out
39 void onGeometryChanged();
42 virtual void closeEvent(QCloseEvent *event);
45 explicit QMLMainWindow(QWidget *parent = 0);
46 QMLMainWindowPrivate *d;
48 Q_DISABLE_COPY(QMLMainWindow)
51 #endif // QMLMAINWINDOW_H