--- a/contactengine/contactsengine.h Tue Aug 10 19:10:57 2010 +0100
+++ b/contactengine/contactsengine.h Tue Aug 10 14:05:55 2010 -0700
@@ -16,25 +16,30 @@
explicit ContactsEngine(QObject *parent = 0);
~ContactsEngine();
+ // index() and parent() are defined by QAbstractListModel. So we do not
+ // need to define the QModelIndex
// 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();
+ void dumpContactMgr(); // use for debugging. Hard to inspect it via Qt Creator.
+ void enumerateMgrs();
signals:
void managerChanged(QStringList containNames);
public slots:
+ void setManager(const QString &aMgr);
private:
QContactManager *m_manager;
QMap<QString, QString> m_availableManagers;
QMap<QString, QContactManager*> m_initialisedManagers;
+
};
#endif // CONTACTSENGINE_H