diff -r 5707b75503d5 -r e4b6ee329501 contactengine/contactsengine.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contactengine/contactsengine.h Thu Aug 05 16:40:47 2010 -0700 @@ -0,0 +1,40 @@ +#ifndef CONTACTSENGINE_H +#define CONTACTSENGINE_H + +#include + +#include + +#include "contactsengine.h" + +using namespace QtMobility; + +class ContactsEngine : public QAbstractListModel +{ + Q_OBJECT +public: + explicit ContactsEngine(QObject *parent = 0); + ~ContactsEngine(); + + // required by list model interface. + int rowCount(const QModelIndex &parent = QModelIndex()) const; + QVariant data(const QModelIndex &index, int role) const; + + QStringList dataSources(); + void setManager(QString aMgr); + +public: + void populateAddresses(); + +signals: + void managerChanged(QStringList containNames); + +public slots: + +private: + QContactManager *m_manager; + QMap m_availableManagers; + QMap m_initialisedManagers; +}; + +#endif // CONTACTSENGINE_H