2 * dialer - CallItem Declarative Proxy Implementation.
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
19 class QMLCallItem : public QObject
23 Q_PROPERTY(QString msisdn READ msisdn)
24 Q_PROPERTY(QString name READ name)
25 Q_PROPERTY(QString state READ state NOTIFY stateChanged)
26 Q_PROPERTY(QString reason READ reason)
27 Q_PROPERTY(int numberLen READ numberLen)
28 Q_PROPERTY(QDateTime startedAt READ startedAt)
29 Q_PROPERTY(int duration READ duration)
31 Q_PROPERTY(bool isMultiparty READ isMultiparty)
34 explicit QMLCallItem(CallItem *proxy, QObject *parent = 0);
37 QString msisdn () const;
38 int numberLen () const;
39 QString name () const;
40 QString state () const;
42 QDateTime startedAt () const;
43 int duration () const;
45 QString reason () const;
46 bool isMultiparty () const;
48 CallItem* proxy () const;
51 void stateChanged (const QString &state);
55 void deflect (const QString &msisdn);
59 void onStateChanged ();
62 class QMLCallItemPrivate *d;
64 Q_DISABLE_COPY(QMLCallItem)
67 #endif // QMLCALLITEM_H