mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
sipjreen: constify parameters in SipMessageExtension
This commit is contained in:
@@ -26,7 +26,7 @@ public:
|
|||||||
bool visible;
|
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);
|
Q_D(TomahawkSipMessage);
|
||||||
d->ip = ip;
|
d->ip = ip;
|
||||||
@@ -58,12 +58,12 @@ unsigned int TomahawkSipMessage::port() const
|
|||||||
return d_func()->port;
|
return d_func()->port;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString TomahawkSipMessage::uniqname() const
|
const QString TomahawkSipMessage::uniqname() const
|
||||||
{
|
{
|
||||||
return d_func()->uniqname;
|
return d_func()->uniqname;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString TomahawkSipMessage::key() const
|
const QString TomahawkSipMessage::key() const
|
||||||
{
|
{
|
||||||
return d_func()->key;
|
return d_func()->key;
|
||||||
}
|
}
|
||||||
|
@@ -12,7 +12,7 @@ class TomahawkSipMessage : public Jreen::StanzaExtension
|
|||||||
Q_DECLARE_PRIVATE(TomahawkSipMessage)
|
Q_DECLARE_PRIVATE(TomahawkSipMessage)
|
||||||
public:
|
public:
|
||||||
// sets visible to true
|
// 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
|
// sets visible to false as we dont have any extra information
|
||||||
TomahawkSipMessage();
|
TomahawkSipMessage();
|
||||||
@@ -20,8 +20,8 @@ class TomahawkSipMessage : public Jreen::StanzaExtension
|
|||||||
|
|
||||||
const QString ip() const;
|
const QString ip() const;
|
||||||
unsigned int port() const;
|
unsigned int port() const;
|
||||||
QString uniqname() const;
|
const QString uniqname() const;
|
||||||
QString key() const;
|
const QString key() const;
|
||||||
bool visible() const;
|
bool visible() const;
|
||||||
private:
|
private:
|
||||||
QScopedPointer<TomahawkSipMessagePrivate> d_ptr;
|
QScopedPointer<TomahawkSipMessagePrivate> d_ptr;
|
||||||
|
Reference in New Issue
Block a user