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

Tray.h « murmur « src - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c4d44305815ad4f3570b562e6a37507d4022e55 (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
// Copyright 2007-2021 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_MURMUR_TRAY_H_
#define MUMBLE_MURMUR_TRAY_H_

#include <QtCore/QObject>
#include <QtCore/QStringList>
#include <QtWidgets/QSystemTrayIcon>

class LogEmitter;
class QAction;

class Tray : public QObject {
private:
	Q_OBJECT
	Q_DISABLE_COPY(Tray);

protected:
	QSystemTrayIcon *qsti;
	QMenu *qm;
	QAction *qaQuit;
	QAction *qaAbout;
	QAction *qaShowLog;
	QStringList qlLog;
	LogEmitter *le;
public slots:
	void on_Tray_activated(QSystemTrayIcon::ActivationReason);
	void on_About_triggered();
	void on_Quit_triggered();
	void on_ShowLog_triggered();
	void addLogMessage(const QString &);

public:
	Tray(QObject *parent, LogEmitter *le);
};

#endif