2 * hfdialer - Hands Free Voice Call Manager
3 * Copyright (c) 2012, Intel Corporation.
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 DIALERAPPLICATION_h
12 #define DIALERAPPLICATION_h
14 #include "managerproxy.h"
15 #include "qmlmainwindow.h"
16 #include <QSortFilterProxyModel>
17 #include <QApplication>
19 class DialerApplication: public QApplication
23 Q_PROPERTY(bool isConnected READ isConnected);
24 Q_PROPERTY(bool hasError READ hasError);
25 Q_PROPERTY(QString lastError READ lastError);
28 DialerApplication(int &argc, char **argv);
30 static DialerApplication* instance();
32 virtual void releasePrestart();
33 virtual void restorePrestart();
35 bool hasError() const;
36 QString lastError() const;
37 void setError(const QString msg);
49 void messagesWaitingChanged();
52 void modemConnected();
53 void modemDisconnected();
54 void modemInterfacesChanged(QStringList interfaces);
55 void modemPowered(bool isPowered);
56 void networkConnected();
57 void networkDisconnected();
58 void callManagerConnected();
59 void callManagerDisconnected();
61 void onCallsChanged();
66 ManagerProxy *m_manager;
68 NetworkProxy *m_network;
69 CallManager *m_callManager;
73 QMLMainWindow *m_mainWindow;
74 QDBusConnection *m_bus;
75 Q_DISABLE_COPY(DialerApplication);
78 #endif // DIALERAPPLICATION_H
80 /* Local Variables: */
82 /* c-basic-offset:4 */
83 /* indent-tabs-mode: nil */