fixed some warnings
This commit is contained in:
parent
4ba07dd7bd
commit
95dd564456
|
@ -38,8 +38,9 @@ public:
|
||||||
m_id ( id ),
|
m_id ( id ),
|
||||||
m_timeout ( 10 ),
|
m_timeout ( 10 ),
|
||||||
m_source ( NULL ),
|
m_source ( NULL ),
|
||||||
m_closeReason(NotificationEnums::CloseReasons::NONE),
|
m_priority(NotificationEnums::Prioritys::NORMAL),
|
||||||
m_priority(NotificationEnums::Prioritys::NORMAL)
|
m_closeReason(NotificationEnums::CloseReasons::NONE)
|
||||||
|
|
||||||
{
|
{
|
||||||
qDebug()<<"ActiveNotifications"<<++count;
|
qDebug()<<"ActiveNotifications"<<++count;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,8 +31,7 @@ namespace Snore{
|
||||||
PluginContainer::PluginContainer(QString fileName, QString pluginName, PluginContainer::PluginType type)
|
PluginContainer::PluginContainer(QString fileName, QString pluginName, PluginContainer::PluginType type)
|
||||||
:m_pluginFile(fileName),
|
:m_pluginFile(fileName),
|
||||||
m_pluginName(pluginName),
|
m_pluginName(pluginName),
|
||||||
m_pluginType(type),
|
m_pluginType(type)
|
||||||
m_instance(NULL)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -62,7 +61,7 @@ const QString & PluginContainer::name()
|
||||||
return m_pluginName;
|
return m_pluginName;
|
||||||
}
|
}
|
||||||
|
|
||||||
const PluginContainer::PluginType PluginContainer::type()
|
PluginContainer::PluginType PluginContainer::type()
|
||||||
{
|
{
|
||||||
return m_pluginType;
|
return m_pluginType;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ public:
|
||||||
SnorePlugin *load();
|
SnorePlugin *load();
|
||||||
const QString &file();
|
const QString &file();
|
||||||
const QString &name();
|
const QString &name();
|
||||||
const PluginContainer::PluginType type();
|
PluginContainer::PluginType type();
|
||||||
|
|
||||||
|
|
||||||
static PluginContainer::PluginType typeFromString(const QString &t);
|
static PluginContainer::PluginType typeFromString(const QString &t);
|
||||||
|
|
|
@ -71,7 +71,7 @@ uint FreedesktopBackend::notify ( Notification noti )
|
||||||
message.setArguments(args);
|
message.setArguments(args);
|
||||||
|
|
||||||
QDBusMessage replyMsg = QDBusConnection::sessionBus().call(message);
|
QDBusMessage replyMsg = QDBusConnection::sessionBus().call(message);
|
||||||
uint id ;
|
uint id = 0;
|
||||||
if(replyMsg.type() == QDBusMessage::ReplyMessage){
|
if(replyMsg.type() == QDBusMessage::ReplyMessage){
|
||||||
id= replyMsg.arguments().at(0).toUInt();
|
id= replyMsg.arguments().at(0).toUInt();
|
||||||
qDebug()<<"DBUS_ID"<<id;
|
qDebug()<<"DBUS_ID"<<id;
|
||||||
|
|
Loading…
Reference in New Issue