mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-28 07:54:49 +03:00
41 lines
592 B
C
41 lines
592 B
C
|
#ifndef APPLICATION_H
|
||
|
#define APPLICATION_H
|
||
|
|
||
|
#include <QApplication>
|
||
|
|
||
|
class QAction;
|
||
|
class QSystemTrayIcon;
|
||
|
|
||
|
namespace Mirall {
|
||
|
|
||
|
class Folder;
|
||
|
|
||
|
class Application : public QApplication
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit Application(int argc, char **argv);
|
||
|
~Application();
|
||
|
signals:
|
||
|
|
||
|
protected slots:
|
||
|
|
||
|
void slotAddFolder();
|
||
|
|
||
|
protected:
|
||
|
|
||
|
void setupActions();
|
||
|
void setupSystemTray();
|
||
|
void setupContextMenu();
|
||
|
|
||
|
private:
|
||
|
Folder *_folder;
|
||
|
QSystemTrayIcon *_tray;
|
||
|
QAction *_actionQuit;
|
||
|
QAction *_actionAddFolder;
|
||
|
};
|
||
|
|
||
|
} // namespace Mirall
|
||
|
|
||
|
#endif // APPLICATION_H
|