summaryrefslogtreecommitdiff
path: root/saltoqd/contactsmanager.h
blob: 0b39d409340efbb8ff3eedbbca47f67cf6d38b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef CONTACTSMANAGER_H
#define CONTACTSMANAGER_H

#include <QtContacts/QContactManager>
#include "storagemanager.h"

class ContactsManager : public QObject
{
	Q_OBJECT
public:
	explicit ContactsManager(StorageManager *storage, ToqManager *toq);

	qint64 getRecordIdForContact(uint contactId);

public slots:
	void scheduleRefresh();

signals:
	void changed();

private slots:
	void refresh();

private:
	ToqManager *_toq;
	StorageManager *_storage;
	QtContacts::QContactManager *_contacts;
	QTimer *_refreshTimer;
};

#endif // CONTACTSMANAGER_H