forked from jahnf/Projecteur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprojecteurapp.h
46 lines (36 loc) · 1.06 KB
/
projecteurapp.h
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
44
45
46
// This file is part of Projecteur - https://github.com/jahnf/projecteur - See LICENSE.md and README.md
#pragma once
#include <QApplication>
#include <map>
class AboutDialog;
class PreferencesDialog;
class QLocalServer;
class QLocalSocket;
class QMenu;
class QSystemTrayIcon;
class Spotlight;
class ProjecteurApplication : public QApplication
{
Q_OBJECT
public:
explicit ProjecteurApplication(int &argc, char **argv);
virtual ~ProjecteurApplication() override;
private slots:
void readCommand(QLocalSocket* client);
private:
void showPreferences(bool show = true);
private:
QScopedPointer<QSystemTrayIcon> m_trayIcon;
QScopedPointer<QMenu> m_trayMenu;
QScopedPointer<PreferencesDialog> m_dialog;
QScopedPointer<AboutDialog> m_aboutDialog;
QLocalServer* const m_localServer = nullptr;
Spotlight* m_spotlight = nullptr;
std::map<QLocalSocket*, quint32> m_commandConnections;
};
class ProjecteurCommandClientApp : public QCoreApplication
{
Q_OBJECT
public:
explicit ProjecteurCommandClientApp(const QString& ipcCommand, int &argc, char **argv);
};