blob: fec537411036ac07263c6cbb565df50d65a74739 (
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
|
// Copyright 2005-2020 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/QStringList>
#include <QtCore/QObject>
#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
|