diff --git a/src/core/notification/notification.cpp b/src/core/notification/notification.cpp index 526a294..05ba73c 100644 --- a/src/core/notification/notification.cpp +++ b/src/core/notification/notification.cpp @@ -91,7 +91,7 @@ Notification::~Notification() { } -const uint &Notification::id() const +uint Notification::id() const { return d->m_id; } @@ -130,22 +130,22 @@ SnoreFrontend *Notification::source() const return d->m_source; } -const QString &Notification::application() const +QString Notification::application() const { return d->m_application; } -const QString &Notification::title() const +QString Notification::title() const { return d->m_title; } -const QString &Notification::text() const +QString Notification::text() const { return d->m_text; } -const QString &Notification::alert() const +QString Notification::alert() const { return d->m_alert; } diff --git a/src/core/notification/notification.h b/src/core/notification/notification.h index fd6501d..b3c99dc 100644 --- a/src/core/notification/notification.h +++ b/src/core/notification/notification.h @@ -56,13 +56,13 @@ public: public: - Notification (); - Notification (const QString &application,const QString &alert,const QString &title,const QString &text,const Icon &icon,int timeout=10, NotificationEnums::Prioritys::prioritys priority = NotificationEnums::Prioritys::NORMAL ); - Notification ( const Notification &other ); + Notification(); + Notification(const QString &application,const QString &alert,const QString &title,const QString &text,const Icon &icon,int timeout=10, NotificationEnums::Prioritys::prioritys priority = NotificationEnums::Prioritys::NORMAL ); + Notification(const Notification &other ); Notification &operator=(const Notification &other); ~Notification(); - const uint &id() const; + uint id() const; //timeout in seconds //0 means sticky const int &timeout() const; @@ -73,11 +73,11 @@ public: const Action &actionInvoked() const; void setSource(class SnoreFrontend *source); class SnoreFrontend *source() const; - const QString &application() const; - const QString &title() const; - const QString &text() const; + QString application() const; + QString title() const; + QString text() const; const Icon &icon() const; - const QString &alert() const; + QString alert() const; void setSticky(); bool sticky() const; const NotificationEnums::Prioritys::prioritys &priority() const; diff --git a/src/core/plugins/snorebackend.h b/src/core/plugins/snorebackend.h index 2972e4d..504c788 100644 --- a/src/core/plugins/snorebackend.h +++ b/src/core/plugins/snorebackend.h @@ -51,7 +51,7 @@ signals: public slots: virtual void slotRegisterApplication(const Snore::Application &application ); - virtual void slotDeregisterApplication(const Application &application ); + virtual void slotDeregisterApplication(const Snore::Application &application ); virtual void slotNotify ( Snore::Notification notification ) = 0; virtual void slotCloseNotification ( Snore::Notification notification );