|
|
|
@ -29,16 +29,21 @@ class NotificationsModel;
|
|
|
|
class Application : public QApplication
|
|
|
|
class Application : public QApplication
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
Q_PROPERTY(bool doNotDisturb READ doNotDisturb WRITE setDoNotDisturb NOTIFY doNotDisturbChanged)
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
explicit Application(int& argc, char** argv);
|
|
|
|
explicit Application(int& argc, char** argv);
|
|
|
|
|
|
|
|
|
|
|
|
void showWindow();
|
|
|
|
void showWindow();
|
|
|
|
void setDoNotDisturb(bool enabled);
|
|
|
|
void setDoNotDisturb(bool enabled);
|
|
|
|
|
|
|
|
bool doNotDisturb() const;
|
|
|
|
|
|
|
|
|
|
|
|
int run();
|
|
|
|
int run();
|
|
|
|
bool parseCommandLineArgs();
|
|
|
|
bool parseCommandLineArgs();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
void doNotDisturbChanged();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
NotificationServer *m_notificationServer;
|
|
|
|
NotificationServer *m_notificationServer;
|
|
|
|
NotificationsModel *m_model;
|
|
|
|
NotificationsModel *m_model;
|
|
|
|
|