Files
flameshot/src/utils/systemnotification.h
lupoDharkael 924d467c53 general cleanup
-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
2017-08-09 13:20:07 +02:00

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