use priority in notification interface
This commit is contained in:
parent
212d56dc2c
commit
9d97249ef6
|
@ -50,9 +50,9 @@ void SnoreNotificationInstance::unregisterWithBackends()
|
||||||
_snore->removeApplication ( _app->name() );
|
_snore->removeApplication ( _app->name() );
|
||||||
}
|
}
|
||||||
|
|
||||||
int SnoreNotificationInstance::notify ( const QString &alert, const QString &title, const QString &text, const QString &icon, int timeout )
|
int SnoreNotificationInstance::notify ( const QString &alert, const QString &title, const QString &text, const QString &icon, int timeout,Notification::prioritys priority )
|
||||||
{
|
{
|
||||||
return _snore->broadcastNotification ( Notification( this,_app->name(),alert,title,text,icon,timeout ) );
|
return _snore->broadcastNotification ( Notification( this,_app->name(),alert,title,text,icon,timeout,0,priority ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void SnoreNotificationInstance::actionInvoked ( Notification notification ){
|
void SnoreNotificationInstance::actionInvoked ( Notification notification ){
|
||||||
|
|
|
@ -31,7 +31,7 @@ public:
|
||||||
void addAlert ( const QString &name,const QString &title = 0, const QString &icon="" );
|
void addAlert ( const QString &name,const QString &title = 0, const QString &icon="" );
|
||||||
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, Notification::prioritys priority = Notification::NORMAL);
|
||||||
void actionInvoked ( Notification notification );
|
void actionInvoked ( Notification notification );
|
||||||
void notificationClosed ( Notification notification );
|
void notificationClosed ( Notification notification );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue