aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/base/QXmppJingleIq.cpp26
-rw-r--r--src/base/QXmppJingleIq.h4
2 files changed, 30 insertions, 0 deletions
diff --git a/src/base/QXmppJingleIq.cpp b/src/base/QXmppJingleIq.cpp
index fa958490..d24b8f73 100644
--- a/src/base/QXmppJingleIq.cpp
+++ b/src/base/QXmppJingleIq.cpp
@@ -175,16 +175,32 @@ QXmppJingleIqContentPrivate::QXmppJingleIqContentPrivate()
{
}
+/// Constructs an empty content.
+
QXmppJingleIq::Content::Content()
: d(new QXmppJingleIqContentPrivate())
{
}
+/// Constructs a copy of other.
+///
+/// \param other
+
QXmppJingleIq::Content::Content(const QXmppJingleIq::Content &other)
: d(other.d)
{
}
+/// Assigns the other content to this one.
+///
+/// \param other
+
+QXmppJingleIq::Content& QXmppJingleIq::Content::operator=(const QXmppJingleIq::Content& other)
+{
+ d = other.d;
+ return *this;
+}
+
QXmppJingleIq::Content::~Content()
{
}
@@ -695,6 +711,16 @@ QXmppJingleIq::~QXmppJingleIq()
{
}
+/// Assigns the other Jingle IQ to this one.
+///
+/// \param other
+
+QXmppJingleIq& QXmppJingleIq::operator=(const QXmppJingleIq& other)
+{
+ d = other.d;
+ return *this;
+}
+
/// Returns the Jingle IQ's action.
QXmppJingleIq::Action QXmppJingleIq::action() const
diff --git a/src/base/QXmppJingleIq.h b/src/base/QXmppJingleIq.h
index 7e21b054..3dcdcd6d 100644
--- a/src/base/QXmppJingleIq.h
+++ b/src/base/QXmppJingleIq.h
@@ -191,6 +191,8 @@ public:
Content(const QXmppJingleIq::Content &other);
~Content();
+ Content& operator=(const Content &other);
+
QString creator() const;
void setCreator(const QString &creator);
@@ -294,6 +296,8 @@ public:
QXmppJingleIq(const QXmppJingleIq &other);
~QXmppJingleIq();
+ QXmppJingleIq& operator=(const QXmppJingleIq &other);
+
Action action() const;
void setAction(Action action);