MCPcopy Create free account
hub / github.com/LibreVR/Revive / CTrayIconController

Class CTrayIconController

ReviveOverlay/trayiconcontroller.h:18–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16};
17
18class CTrayIconController : public QObject
19{
20 Q_OBJECT
21 typedef QObject BaseClass;
22
23public:
24 static CTrayIconController *SharedInstance();
25
26public:
27 CTrayIconController();
28 ~CTrayIconController();
29
30 bool Init();
31 void ShowInformation(ETrayInfo info);
32
33public slots:
34 void quit();
35
36protected slots:
37 void openxr(bool checked);
38 void inject();
39 void shortcut();
40 void show();
41 void showHelp();
42 void messageClicked();
43 void activated(QSystemTrayIcon::ActivationReason reason);
44
45private:
46 std::unique_ptr<QSystemTrayIcon> m_trayIcon;
47 QMenu m_trayIconMenu;
48 ETrayInfo m_LastInfo;
49
50 QString openDialog();
51};
52
53#endif // CTRAYICONCONTROLLER_H

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected