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
18 #include "callproxy.h"
40 enum CallDisconnectReason {
48 class CallItem: public QObject
52 Q_PROPERTY(QString path READ path WRITE setPath)
53 Q_PROPERTY(QString lineID READ lineID)
54 Q_PROPERTY(QString name READ name)
55 Q_PROPERTY(CallState state READ state)
56 Q_PROPERTY(CallDirection direction READ direction WRITE setDirection)
57 Q_PROPERTY(CallDisconnectReason reason READ reason)
58 Q_PROPERTY(int duration READ duration)
59 Q_PROPERTY(QDateTime startTime READ startTime)
60 Q_PROPERTY(bool multiparty READ multiparty)
61 Q_PROPERTY(CallProxy* callProxy READ callProxy)
64 CallItem(const QString path = QString(), QObject *parent = 0);
68 QString lineID() const;
70 CallState state() const;
71 CallDirection direction() const;
72 CallDisconnectReason reason() const;
74 QDateTime startTime() const;
75 CallProxy *callProxy() const;
82 bool setPath(QString path); // Setting this will create the CallProxy
83 void setDirection(CallDirection direction);
86 void silenceRingtone();
89 // TODO: handle tap-and-hold
93 void multipartyChanged();
96 void callStateChanged();
97 void callDataChanged();
98 void callDisconnected(const QString &reason);
99 void callMultipartyChanged();
105 QString m_ringtonefile;
108 Q_DISABLE_COPY(CallItem)
113 /* Local Variables: */
115 /* c-basic-offset:4 */
116 /* indent-tabs-mode: nil */