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){
|
||||
_app->addAlert(new Alert(name,title));
|
||||
void SnoreNotificationInstance::addAlert(const QString &name, const QString &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;
|
||||
return _snore->broadcastNotification(QSharedPointer<Notification>(new Notification(NULL,_appName,alert,title,text,icon,timeout)));
|
||||
}
|
||||
|
||||
#include "snorenotificationinstance.moc"
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
#ifndef SNORENOTIFICATIONINSTANCE_H
|
||||
#define SNORENOTIFICATIONINSTANCE_H
|
||||
|
||||
#include "core/snoreserver.h"
|
||||
#include "core/application.h"
|
||||
#include "snoreserver.h"
|
||||
#include "application.h"
|
||||
|
||||
class SnoreNotificationInstance:public QObject
|
||||
{
|
||||
|
@ -26,10 +26,10 @@ class SnoreNotificationInstance:public QObject
|
|||
public:
|
||||
SnoreNotificationInstance(const QString &appname,SnoreServer *parent);
|
||||
~SnoreNotificationInstance();
|
||||
void addAlert(const QString &name,const QString &title);
|
||||
void addAlert(const QString &name,const QString &title = 0);
|
||||
void registerWithBackends();
|
||||
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:
|
||||
SnoreNotificationInstance();
|
||||
const QString _appName;
|
||||
|
|
|
@ -2,7 +2,7 @@ SET(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH}/snoreplugins)
|
|||
|
||||
add_subdirectory(freedesktopnotification)
|
||||
add_subdirectory(freedesktopfrontend)
|
||||
add_subdirectory(webposter)
|
||||
#add_subdirectory(webposter)
|
||||
add_subdirectory(snarlnetwork)
|
||||
add_subdirectory(snarl)
|
||||
#add_subdirectory(dbusbinding)
|
||||
|
|
Loading…
Reference in New Issue