mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-11 13:52:21 +08:00
33 lines
652 B
C++
33 lines
652 B
C++
//
|
|
// Created by rigoligo on 2021/5/9.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#pragma push_macro("signals")
|
|
#undef signals
|
|
#include <libnotify/notify.h>
|
|
#define signals DUMMY
|
|
#pragma pop_macro("signals")
|
|
|
|
#include <QString>
|
|
#include <QObject>
|
|
#include "spkui_general.h"
|
|
|
|
class SpkUiMessage : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
static void SendDesktopNotification(QString aMsg,
|
|
const char * const aIcon = SpkUi::StoreIconName);
|
|
static void SendStoreNotification(QString);
|
|
static void SetDesktopNotifyTimeout(int ms);
|
|
|
|
private:
|
|
static NotifyNotification *_notify;
|
|
static int mTimeoutDesktop;
|
|
|
|
signals:
|
|
|
|
};
|