mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-24 23:41:10 +00:00
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;
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ public:
|
||||
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…
x
Reference in New Issue
Block a user