mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 12:52:04 +08:00
New Non-DTK store client prototype
This commit is contained in:
35
inc/spkuimsg.h
Normal file
35
inc/spkuimsg.h
Normal file
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// Created by rigoligo on 2021/5/9.
|
||||
//
|
||||
|
||||
#ifndef _SPKUIMSG_H_
|
||||
#define _SPKUIMSG_H_
|
||||
|
||||
#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:
|
||||
|
||||
};
|
||||
|
||||
#endif //_SPKUIMSG_H_
|
||||
Reference in New Issue
Block a user