mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-22 16:59:58 +01:00
sipjreen: constify parameters in SipMessageExtension
This commit is contained in:
parent
137c608fa2
commit
99563bfde6
@ -26,7 +26,7 @@ public:
|
||||
bool visible;
|
||||
};
|
||||
|
||||
TomahawkSipMessage::TomahawkSipMessage(QString ip, unsigned int port, QString uniqname, QString key) : d_ptr(new TomahawkSipMessagePrivate)
|
||||
TomahawkSipMessage::TomahawkSipMessage(const QString &ip, unsigned int port, const QString &uniqname, const QString &key) : d_ptr(new TomahawkSipMessagePrivate)
|
||||
{
|
||||
Q_D(TomahawkSipMessage);
|
||||
d->ip = ip;
|
||||
@ -58,12 +58,12 @@ unsigned int TomahawkSipMessage::port() const
|
||||
return d_func()->port;
|
||||
}
|
||||
|
||||
QString TomahawkSipMessage::uniqname() const
|
||||
const QString TomahawkSipMessage::uniqname() const
|
||||
{
|
||||
return d_func()->uniqname;
|
||||
}
|
||||
|
||||
QString TomahawkSipMessage::key() const
|
||||
const QString TomahawkSipMessage::key() const
|
||||
{
|
||||
return d_func()->key;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class TomahawkSipMessage : public Jreen::StanzaExtension
|
||||
Q_DECLARE_PRIVATE(TomahawkSipMessage)
|
||||
public:
|
||||
// sets visible to true
|
||||
TomahawkSipMessage(QString ip, unsigned int port, QString uniqname, QString key);
|
||||
TomahawkSipMessage(const QString &ip, unsigned int port, const QString &uniqname, const QString &key);
|
||||
|
||||
// sets visible to false as we dont have any extra information
|
||||
TomahawkSipMessage();
|
||||
@ -20,8 +20,8 @@ class TomahawkSipMessage : public Jreen::StanzaExtension
|
||||
|
||||
const QString ip() const;
|
||||
unsigned int port() const;
|
||||
QString uniqname() const;
|
||||
QString key() const;
|
||||
const QString uniqname() const;
|
||||
const QString key() const;
|
||||
bool visible() const;
|
||||
private:
|
||||
QScopedPointer<TomahawkSipMessagePrivate> d_ptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user