summaryrefslogtreecommitdiff
path: root/saltoqd/commmanager.h
blob: 45c0af912cf9bd8c9756146f1983554d7f420163 (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
32
33
34
35
36
#ifndef COMMMANAGER_H
#define COMMMANAGER_H

#include "storagemanager.h"
#include <CommHistory/CallModel>
#include <CommHistory/GroupModel>

class ContactsManager;

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

public slots:
	void scheduleRefresh();

signals:

private slots:
	void refresh();

private:
	ToqManager *_toq;
	ContactsManager *_contacts;
	StorageManager *_storage;
	MDConfGroup *_settings;

	CommHistory::CallModel *_calls;
	CommHistory::GroupModel *_convs;

	QTimer *_refreshTimer;
};

#endif // COMMMANAGER_H