equal
deleted
inserted
replaced
43 #define QMLCONTACT_H |
43 #define QMLCONTACT_H |
44 |
44 |
45 #include <qmobilityglobal.h> |
45 #include <qmobilityglobal.h> |
46 #include <QObject> |
46 #include <QObject> |
47 #include <QContact> |
47 #include <QContact> |
48 #include <qml.h> |
48 #include <qdeclarative.h> |
49 |
49 |
50 QTM_USE_NAMESPACE |
50 QTM_USE_NAMESPACE |
51 |
51 |
52 class QmlContact : public QObject { |
52 class QmlContact : public QObject { |
53 Q_OBJECT |
53 Q_OBJECT |
57 Q_PROPERTY(QString test READ test) |
57 Q_PROPERTY(QString test READ test) |
58 Q_PROPERTY(QStringList availableActions READ availableActions) |
58 Q_PROPERTY(QStringList availableActions READ availableActions) |
59 Q_PROPERTY(QStringList details READ details) |
59 Q_PROPERTY(QStringList details READ details) |
60 Q_PROPERTY(QStringList contexts READ contexts) |
60 Q_PROPERTY(QStringList contexts READ contexts) |
61 public: |
61 public: |
62 QmlContact(QContact& contact, QObject *parent = 0); |
62 explicit QmlContact(const QContact& contact, QObject *parent = 0); |
63 QmlContact(); |
63 QmlContact(); |
64 ~QmlContact(); |
64 ~QmlContact(); |
65 |
65 |
66 QContact& contact(); |
66 QContact& contact(); |
67 void setContact(QContact& contact); |
67 void setContact(QContact& contact); |
88 |
88 |
89 private: |
89 private: |
90 QContact m_contact; |
90 QContact m_contact; |
91 }; |
91 }; |
92 |
92 |
93 QML_DECLARE_TYPE(QmlContact); |
93 QML_DECLARE_TYPE(QmlContact) |
94 |
94 |
95 #endif // QMLCONTACT_H |
95 #endif // QMLCONTACT_H |