disabled webposter til theres a real web platform
This commit is contained in:
parent
79b4e434f8
commit
1281aefdcf
|
@ -35,8 +35,8 @@ SnoreNotificationInstance::~SnoreNotificationInstance(){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SnoreNotificationInstance::addAlert(const QString &name, const QString &title){
|
void SnoreNotificationInstance::addAlert(const QString &name, const QString &title){
|
||||||
_app->addAlert(new Alert(name,title));
|
_app->addAlert(new Alert(name,title.isNull()?name:title));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,3 +54,5 @@ int SnoreNotificationInstance::notify(const QString &alert, const QString &title
|
||||||
qDebug()<<"Broadcasting"<<title;
|
qDebug()<<"Broadcasting"<<title;
|
||||||
return _snore->broadcastNotification(QSharedPointer<Notification>(new Notification(NULL,_appName,alert,title,text,icon,timeout)));
|
return _snore->broadcastNotification(QSharedPointer<Notification>(new Notification(NULL,_appName,alert,title,text,icon,timeout)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "snorenotificationinstance.moc"
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
#ifndef SNORENOTIFICATIONINSTANCE_H
|
#ifndef SNORENOTIFICATIONINSTANCE_H
|
||||||
#define SNORENOTIFICATIONINSTANCE_H
|
#define SNORENOTIFICATIONINSTANCE_H
|
||||||
|
|
||||||
#include "core/snoreserver.h"
|
#include "snoreserver.h"
|
||||||
#include "core/application.h"
|
#include "application.h"
|
||||||
|
|
||||||
class SnoreNotificationInstance:public QObject
|
class SnoreNotificationInstance:public QObject
|
||||||
{
|
{
|
||||||
|
@ -26,10 +26,10 @@ class SnoreNotificationInstance:public QObject
|
||||||
public:
|
public:
|
||||||
SnoreNotificationInstance(const QString &appname,SnoreServer *parent);
|
SnoreNotificationInstance(const QString &appname,SnoreServer *parent);
|
||||||
~SnoreNotificationInstance();
|
~SnoreNotificationInstance();
|
||||||
void addAlert(const QString &name,const QString &title);
|
void addAlert(const QString &name,const QString &title = 0);
|
||||||
void registerWithBackends();
|
void registerWithBackends();
|
||||||
void unregisterWithBackends();
|
void unregisterWithBackends();
|
||||||
int notify(const QString &alert,const QString &title,const QString &text,const QString &icon=0,int timeout=10);
|
int notify(const QString &alert,const QString &title,const QString &text,const QString &icon = 0,int timeout = 10);
|
||||||
private:
|
private:
|
||||||
SnoreNotificationInstance();
|
SnoreNotificationInstance();
|
||||||
const QString _appName;
|
const QString _appName;
|
||||||
|
|
|
@ -2,7 +2,7 @@ SET(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH}/snoreplugins)
|
||||||
|
|
||||||
add_subdirectory(freedesktopnotification)
|
add_subdirectory(freedesktopnotification)
|
||||||
add_subdirectory(freedesktopfrontend)
|
add_subdirectory(freedesktopfrontend)
|
||||||
add_subdirectory(webposter)
|
#add_subdirectory(webposter)
|
||||||
add_subdirectory(snarlnetwork)
|
add_subdirectory(snarlnetwork)
|
||||||
add_subdirectory(snarl)
|
add_subdirectory(snarl)
|
||||||
#add_subdirectory(dbusbinding)
|
#add_subdirectory(dbusbinding)
|
||||||
|
|
Loading…
Reference in New Issue