2 * dialer - Declarative Dialer Adapter.
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
16 #include "qmlcallitem.h"
18 class QMLDialer : public QObject
22 Q_PROPERTY(QString mailbox READ mailbox WRITE setMailbox);
23 Q_PROPERTY(QMLCallItem* currentCall READ currentCall);
24 Q_PROPERTY(bool modemOnline READ modemOnline WRITE setModemOnline NOTIFY modemOnlineChanged);
25 Q_PROPERTY(int callCount READ callCount NOTIFY callCountChanged);
28 explicit QMLDialer(QObject *parent = 0);
31 QString mailbox () const;
32 QMLCallItem* currentCall () const;
39 void callCountChanged(int callCount);
40 void modemOnlineChanged(bool powered);
43 void setMailbox(const QString &number);
44 void setModemOnline(bool online);
45 QString speedDial(int index) const;
46 void setSpeedDial(int index, const QString &number);
47 void dial(const QString &msisdn);
49 void silenceRingtone();
50 void sendTones(const QString &tones);
53 void releaseAndAnswer();
55 void createMultiparty();
56 void hangupMultiparty();
57 void privateChat(const QMLCallItem &callitem);
61 void onCallsChanged();
62 void onIncomingCall(CallItem *callitem);
63 void onCallManagerChanged();
66 class QMLDialerPrivate *d;
71 /* Local Variables: */
73 /* c-basic-offset:4 */
74 /* indent-tabs-mode: nil */