fixed some warnings

This commit is contained in:
Patrick von Reth 2012-02-07 18:20:04 +01:00
parent 4ba07dd7bd
commit 95dd564456
4 changed files with 19 additions and 19 deletions

View File

@ -32,29 +32,30 @@ static int count = 0;
class Notification::NotificationData : public QObject class Notification::NotificationData : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
NotificationData ( uint id=0 ): NotificationData ( uint id=0 ):
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;
} }
NotificationData ( const QString &application,const QString &alert,const QString &title,const QString &text,const SnoreIcon &icon,int timeout,uint id,NotificationEnums::Prioritys::prioritys priority ): 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_id ( id ),
m_timeout ( timeout ), m_timeout ( timeout ),
m_source ( NULL), m_source ( NULL),
m_application ( application ), m_application ( application ),
m_alert ( alert ), m_alert ( alert ),
m_title ( title ), m_title ( title ),
m_text ( text ), m_text ( text ),
m_icon ( icon ), m_icon ( icon ),
m_priority(priority), m_priority(priority),
m_closeReason(NotificationEnums::CloseReasons::NONE) m_closeReason(NotificationEnums::CloseReasons::NONE)
{ {
qDebug()<<"ActiveNotifications"<<++count; qDebug()<<"ActiveNotifications"<<++count;
} }

View File

@ -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;
} }

View File

@ -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);

View File

@ -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;