summaryrefslogtreecommitdiff
path: root/saltoqd/voicecallmanager.h
blob: eb9e38e89450fd0b173948549fa8ac5863e28e69 (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
#ifndef VOICECALLMANAGER_H
#define VOICECALLMANAGER_H

#include "toqmanager.h"

class VoiceCallManager : public QObject, public ToqManager::EndpointHandler
{
	Q_OBJECT
public:
	explicit VoiceCallManager(ToqManager *toq);

	void handleMessage(const ToqConnection::Message &msg) Q_DECL_OVERRIDE;

	static void setSilentMode(bool silent);

private:
	void handleGetPhoneStatusMessage(const ToqConnection::Message &msg);

	static QString getCurrentProfile();
	static void setProfile(const QString &name);

private:
	ToqManager *_toq;
};

#endif // VOICECALLMANAGER_H