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);
30 Q_PROPERTY(bool isMultiparty READ isMultiparty);
33 explicit QMLCallItem(CallItem *proxy, QObject *parent = 0);
36 QString msisdn () const;
37 int numberLen () const;
38 QString name () const;
39 QString state () const;
41 QDateTime startedAt () const;
42 int duration () const;
44 QString reason () const;
45 bool isMultiparty () const;
47 CallItem* proxy () const;
50 void stateChanged (const QString &state);
54 void deflect (const QString &msisdn);
58 void onStateChanged ();
61 class QMLCallItemPrivate *d;
63 Q_DISABLE_COPY(QMLCallItem);
66 #endif // QMLCALLITEM_H
68 /* Local Variables: */
70 /* c-basic-offset:4 */
71 /* indent-tabs-mode: nil */