Welcome to mirror list, hosted at ThFree Co, Russian Federation.

G15LCDEngine_unix.h « mumble « src - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cba95ee456ab5566392c8a07340a425994825a89 (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
37
38
39
40
41
42
43
// Copyright 2005-2019 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.

#ifndef MUMBLE_MUMBLE_G15LCDENGINE_UNIX_H_
#define MUMBLE_MUMBLE_G15LCDENGINE_UNIX_H_

#include "mumble_pch.hpp"
#include "LCD.h"

#include <g15daemon_client.h>

class G15LCDDeviceUnix;

class G15LCDEngineUnix : public LCDEngine {
		friend class G15LCDDeviceUnix;
	protected:
		int sock;
	public:
		G15LCDEngineUnix();
		~G15LCDEngineUnix() Q_DECL_OVERRIDE;
		QList<LCDDevice *> devices() const Q_DECL_OVERRIDE;
};

class G15LCDDeviceUnix : public LCDDevice {
	protected:
		bool bEnabled;
		G15LCDEngineUnix *engine;
	public:
		G15LCDDeviceUnix(G15LCDEngineUnix *e);
		~G15LCDDeviceUnix() Q_DECL_OVERRIDE;
		bool enabled() Q_DECL_OVERRIDE;
		void setEnabled(bool e) Q_DECL_OVERRIDE;
		void blitImage(QImage *img, bool alert) Q_DECL_OVERRIDE;
		QString name() const Q_DECL_OVERRIDE;
		QSize size() const Q_DECL_OVERRIDE;
};

#else
class G15LCDEngineUnix;
class G15LCDDeviceUnix;
#endif