mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-10 08:35:54 +00:00
as SnoreToast has been renamed rename it in the default loading
This commit is contained in:
parent
2c65c71309
commit
e0e74c1011
@ -213,9 +213,9 @@ bool SnoreCore::setPrimaryNotificationBackend()
|
|||||||
{
|
{
|
||||||
QStringList backends = notificationBackends();
|
QStringList backends = notificationBackends();
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
if(QSysInfo::windowsVersion() == QSysInfo::WV_WINDOWS8 && backends.contains("SnoreToast"))
|
if(QSysInfo::windowsVersion() == QSysInfo::WV_WINDOWS8 && backends.contains("Windows 8"))
|
||||||
{
|
{
|
||||||
if(setPrimaryNotificationBackend("SnoreToast"))
|
if(setPrimaryNotificationBackend("Windows 8"))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if( backends.contains("Growl"))
|
if( backends.contains("Growl"))
|
||||||
@ -246,10 +246,11 @@ bool SnoreCore::setPrimaryNotificationBackend()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString &SnoreCore::primaryNotificationBackend(){
|
const QString SnoreCore::primaryNotificationBackend()
|
||||||
if(m_notificationBackend == NULL){
|
{
|
||||||
static QString none;
|
if(m_notificationBackend == NULL)
|
||||||
return none;
|
{
|
||||||
|
return QString();
|
||||||
}
|
}
|
||||||
return m_notificationBackend->name();
|
return m_notificationBackend->name();
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ public:
|
|||||||
|
|
||||||
bool setPrimaryNotificationBackend( const QString &backend );
|
bool setPrimaryNotificationBackend( const QString &backend );
|
||||||
bool setPrimaryNotificationBackend();
|
bool setPrimaryNotificationBackend();
|
||||||
const QString &primaryNotificationBackend();
|
const QString primaryNotificationBackend();
|
||||||
QSystemTrayIcon *trayIcon();
|
QSystemTrayIcon *trayIcon();
|
||||||
|
|
||||||
Notification getActiveNotificationByID(uint id);
|
Notification getActiveNotificationByID(uint id);
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
#ifndef TOASTER_H
|
|
||||||
#define TOASTER_H
|
|
||||||
|
|
||||||
#include "core/plugins/snorebackend.h"
|
|
||||||
|
|
||||||
class SnoreToast : public Snore::SnoreBackend
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
Q_INTERFACES(Snore::SnoreBackend)
|
|
||||||
public:
|
|
||||||
SnoreToast();
|
|
||||||
~SnoreToast();
|
|
||||||
bool init(Snore::SnoreCore *snore);
|
|
||||||
|
|
||||||
|
|
||||||
// SnoreBackend interface
|
|
||||||
public slots:
|
|
||||||
void registerApplication(Snore::Application *application);
|
|
||||||
void unregisterApplication(Snore::Application *application);
|
|
||||||
uint notify(Snore::Notification notification);
|
|
||||||
void closeNotification(Snore::Notification notification);
|
|
||||||
|
|
||||||
private slots:
|
|
||||||
void slotToastNotificationClosed(int code, QProcess::ExitStatus);
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // TOASTER_H
|
|
Loading…
x
Reference in New Issue
Block a user