projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit changes the official Quassel IRC channel, (#quassel)
[quassel.git]
/
src
/
qtui
/
snorenotificationbackend.h
diff --git
a/src/qtui/snorenotificationbackend.h
b/src/qtui/snorenotificationbackend.h
index
10e40cf
..
02d48fe
100644
(file)
--- a/
src/qtui/snorenotificationbackend.h
+++ b/
src/qtui/snorenotificationbackend.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2011-20
18
by Hannah von Reth *
+ * Copyright (C) 2011-20
20
by Hannah von Reth *
* vonreth@kde.org *
* *
* This program is free software; you can redistribute it and/or modify *
* vonreth@kde.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-21,39
+21,38
@@
#ifndef SNORENOTIFICATIONBACKEND_H_
#define SNORENOTIFICATIONBACKEND_H_
#ifndef SNORENOTIFICATIONBACKEND_H_
#define SNORENOTIFICATIONBACKEND_H_
-#include "abstractnotificationbackend.h"
+#include <libsnore/notification/notification.h>
+#include <libsnore/snore.h>
+#include "abstractnotificationbackend.h"
#include "settingspage.h"
#include "ui_snorentificationconfigwidget.h"
#include "settingspage.h"
#include "ui_snorentificationconfigwidget.h"
-#include <libsnore/snore.h>
-#include <libsnore/notification/notification.h>
-
class SystrayNotificationBackend;
class SystrayNotificationBackend;
-class SnoreNotificationBackend : public AbstractNotificationBackend {
+class SnoreNotificationBackend : public AbstractNotificationBackend
+{
Q_OBJECT
public:
Q_OBJECT
public:
- SnoreNotificationBackend
(QObject *
parent);
+ SnoreNotificationBackend
(QObject*
parent);
~SnoreNotificationBackend();
~SnoreNotificationBackend();
- void notify(const Notification
&);
+ void notify(const Notification&);
void close(uint notificationId);
void close(uint notificationId);
- virtual SettingsPage
*
createConfigWidget() const;
+ virtual SettingsPage
*
createConfigWidget() const;
public slots:
void actionInvoked(Snore::Notification);
private slots:
public slots:
void actionInvoked(Snore::Notification);
private slots:
- void setTraybackend(const QVariant
&
b);
+ void setTraybackend(const QVariant
&
b);
private:
private:
-
class ConfigWidget;
#ifndef HAVE_KDE
class ConfigWidget;
#ifndef HAVE_KDE
- SystrayNotificationBackend
* m_systrayBackend = nullptr;
+ SystrayNotificationBackend* m_systrayBackend = nullptr;
#endif
QHash<uint, uint> m_notificationIds;
Snore::Icon m_icon;
#endif
QHash<uint, uint> m_notificationIds;
Snore::Icon m_icon;
@@
-61,18
+60,19
@@
private:
Snore::Alert m_alert;
};
Snore::Alert m_alert;
};
-class SnoreNotificationBackend::ConfigWidget : public SettingsPage {
+class SnoreNotificationBackend::ConfigWidget : public SettingsPage
+{
Q_OBJECT
public:
Q_OBJECT
public:
- ConfigWidget(QWidget
*
parent = 0);
+ ConfigWidget(QWidget
*
parent = 0);
bool hasDefaults() const;
void defaults();
void load();
void save();
private slots:
bool hasDefaults() const;
void defaults();
void load();
void save();
private slots:
- void useSn
n
oreChanged(bool);
+ void useSnoreChanged(bool);
private:
Ui::SnoreNotificationConfigWidget ui;
private:
Ui::SnoreNotificationConfigWidget ui;