-use of the override keyword -delete unused code -const correctness -more uniform code style -for each with const references when possible -getters no longer use the word 'get' -others
24 lines
459 B
C++
24 lines
459 B
C++
#ifndef SYSTEMNOTIFICATION_H
|
|
#define SYSTEMNOTIFICATION_H
|
|
|
|
#include <QObject>
|
|
|
|
class QDBusInterface;
|
|
|
|
class SystemNotification : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit SystemNotification(QObject *parent = nullptr);
|
|
|
|
void sendMessage(const QString &text,
|
|
const QString &title = "Flameshot Info",
|
|
const int timeout = 5000);
|
|
|
|
private:
|
|
QDBusInterface *m_interface;
|
|
|
|
};
|
|
|
|
#endif // SYSTEMNOTIFICATION_H
|