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 <QSortFilterProxyModel>
16 #include <QApplication>
18 class DialerApplication: public QApplication
22 Q_PROPERTY(bool isConnected READ isConnected)
23 Q_PROPERTY(bool hasError READ hasError)
24 Q_PROPERTY(QString lastError READ lastError)
27 DialerApplication(int &argc, char **argv);
29 static DialerApplication* instance();
31 virtual void releasePrestart();
32 virtual void restorePrestart();
34 bool hasError() const;
35 QString lastError() const;
36 void setError(const QString msg);
40 // SeasideSyncModel *seasideModel();
41 // SeasideProxyModel *seasideProxy();
42 // HistoryTableModel *historyModel();
43 // QSortFilterProxyModel *historyProxy();
51 void messagesWaitingChanged();
54 void modemConnected();
55 void modemDisconnected();
56 void modemInterfacesChanged(QStringList interfaces);
57 void modemPowered(bool isPowered);
58 void networkConnected();
59 void networkDisconnected();
60 void callManagerConnected();
61 void callManagerDisconnected();
63 void onCallsChanged();
68 ManagerProxy *m_manager;
70 NetworkProxy *m_network;
71 CallManager *m_callManager;
76 //SeasideSyncModel *m_seasideModel;
77 //SeasideProxyModel *m_seasideProxy;
79 //HistoryTableModel *m_historyModel;
80 // QSortFilterProxyModel *m_historyProxy;
82 Q_DISABLE_COPY(DialerApplication);
85 #endif // DIALERAPPLICATION_H