/***************************************************************************
- * Copyright (C) 2013-2018 by the Quassel Project *
+ * Copyright (C) 2013-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
Q_OBJECT
public:
- DockManagerNotificationBackend(QObject *parent = nullptr);
+ DockManagerNotificationBackend(QObject* parent = nullptr);
- void notify(const Notification &) override;
+ void notify(const Notification&) override;
void close(uint notificationId) override;
- SettingsPage *createConfigWidget() const override;
+ SettingsPage* createConfigWidget() const override;
private slots:
- void enabledChanged(const QVariant &);
+ void enabledChanged(const QVariant&);
void updateProgress(int progress);
void updateProgress(int done, int total);
void itemAdded(QDBusObjectPath);
bool _enabled;
bool _available;
QDBusConnection _bus;
- QDBusInterface *_dock{nullptr};
- QDBusInterface *_item{nullptr};
+ QDBusInterface* _dock{nullptr};
+ QDBusInterface* _item{nullptr};
int _count{0};
};
-
class DockManagerNotificationBackend::ConfigWidget : public SettingsPage
{
Q_OBJECT
public:
- ConfigWidget(bool enabled, QWidget *parent = nullptr);
+ ConfigWidget(bool enabled, QWidget* parent = nullptr);
void save() override;
void load() override;
void widgetChanged();
private:
- QCheckBox *enabledBox;
+ QCheckBox* enabledBox;
bool enabled;
};
-
#endif