mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-24 23:41:10 +00:00
fixed some warnings
This commit is contained in:
parent
4ba07dd7bd
commit
95dd564456
@ -32,29 +32,30 @@ static int count = 0;
|
||||
|
||||
class Notification::NotificationData : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
public:
|
||||
NotificationData ( uint id=0 ):
|
||||
m_id ( id ),
|
||||
m_timeout ( 10 ),
|
||||
m_source ( NULL ),
|
||||
m_closeReason(NotificationEnums::CloseReasons::NONE),
|
||||
m_priority(NotificationEnums::Prioritys::NORMAL)
|
||||
m_timeout ( 10 ),
|
||||
m_source ( NULL ),
|
||||
m_priority(NotificationEnums::Prioritys::NORMAL),
|
||||
m_closeReason(NotificationEnums::CloseReasons::NONE)
|
||||
|
||||
{
|
||||
qDebug()<<"ActiveNotifications"<<++count;
|
||||
}
|
||||
|
||||
NotificationData ( const QString &application,const QString &alert,const QString &title,const QString &text,const SnoreIcon &icon,int timeout,uint id,NotificationEnums::Prioritys::prioritys priority ):
|
||||
m_id ( id ),
|
||||
m_timeout ( timeout ),
|
||||
m_source ( NULL),
|
||||
m_application ( application ),
|
||||
m_alert ( alert ),
|
||||
m_title ( title ),
|
||||
m_text ( text ),
|
||||
m_icon ( icon ),
|
||||
m_priority(priority),
|
||||
m_closeReason(NotificationEnums::CloseReasons::NONE)
|
||||
m_timeout ( timeout ),
|
||||
m_source ( NULL),
|
||||
m_application ( application ),
|
||||
m_alert ( alert ),
|
||||
m_title ( title ),
|
||||
m_text ( text ),
|
||||
m_icon ( icon ),
|
||||
m_priority(priority),
|
||||
m_closeReason(NotificationEnums::CloseReasons::NONE)
|
||||
{
|
||||
qDebug()<<"ActiveNotifications"<<++count;
|
||||
}
|
||||
|
@ -31,8 +31,7 @@ namespace Snore{
|
||||
PluginContainer::PluginContainer(QString fileName, QString pluginName, PluginContainer::PluginType type)
|
||||
:m_pluginFile(fileName),
|
||||
m_pluginName(pluginName),
|
||||
m_pluginType(type),
|
||||
m_instance(NULL)
|
||||
m_pluginType(type)
|
||||
{
|
||||
|
||||
}
|
||||
@ -62,7 +61,7 @@ const QString & PluginContainer::name()
|
||||
return m_pluginName;
|
||||
}
|
||||
|
||||
const PluginContainer::PluginType PluginContainer::type()
|
||||
PluginContainer::PluginType PluginContainer::type()
|
||||
{
|
||||
return m_pluginType;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
SnorePlugin *load();
|
||||
const QString &file();
|
||||
const QString &name();
|
||||
const PluginContainer::PluginType type();
|
||||
PluginContainer::PluginType type();
|
||||
|
||||
|
||||
static PluginContainer::PluginType typeFromString(const QString &t);
|
||||
|
@ -71,7 +71,7 @@ uint FreedesktopBackend::notify ( Notification noti )
|
||||
message.setArguments(args);
|
||||
|
||||
QDBusMessage replyMsg = QDBusConnection::sessionBus().call(message);
|
||||
uint id ;
|
||||
uint id = 0;
|
||||
if(replyMsg.type() == QDBusMessage::ReplyMessage){
|
||||
id= replyMsg.arguments().at(0).toUInt();
|
||||
qDebug()<<"DBUS_ID"<<id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user