dont return const QString&
This commit is contained in:
parent
2475802a10
commit
ddc5abb1e6
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue