DtkCore
DTK Core module
dnotifysender.h
1#ifndef DNOTIFYSENDER_H
2#define DNOTIFYSENDER_H
3
4#include "dtkcore_global.h"
5
6#include <QDBusPendingCall>
7#include <memory>
8
9DCORE_BEGIN_NAMESPACE
10
11namespace DUtil {
12struct DNotifyData;
13class LIBDTKCORESHARED_EXPORT DNotifySender {
14public:
15 DNotifySender(const QString &summary);
16 DNotifySender appName(const QString &appName = QString());
17 DNotifySender appIcon(const QString &appIcon = QString());
18 DNotifySender appBody(const QString &appBody = QString());
19 DNotifySender replaceId(const uint replaceId = 0);
20 DNotifySender timeOut(const int timeOut = -1);
21 DNotifySender actions(const QStringList &actions = QStringList());
22 DNotifySender hints(const QVariantMap &hints = QVariantMap());
23 QDBusPendingCall call();
24
25private:
26 std::shared_ptr<DNotifyData> m_dbusData;
27};
28} // namespace DUtil
29
30DCORE_END_NAMESPACE
31
32#endif // DNOTIFYSENDER_H
Definition: dnotifysender.h:13