aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppBitsOfBinaryDataList.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2021-03-27 14:32:53 +0100
committerLinus Jahn <lnj@kaidan.im>2021-03-28 00:09:13 +0100
commit0e52fd954977d63f1280d61c9f0c3e3232e55be9 (patch)
treeff5fc68bc83ed4cceff0d6b6d6446858286e99a7 /src/base/QXmppBitsOfBinaryDataList.cpp
parentb9c1ca9b60e3bdfe1371c813750ce31383bcc25f (diff)
downloadqxmpp-0e52fd954977d63f1280d61c9f0c3e3232e55be9.tar.gz
BitsBinaryDataList: Merge into QXmppBitsOfBinaryData compilation unit
This should speed up compilation a bit.
Diffstat (limited to 'src/base/QXmppBitsOfBinaryDataList.cpp')
-rw-r--r--src/base/QXmppBitsOfBinaryDataList.cpp67
1 files changed, 0 insertions, 67 deletions
diff --git a/src/base/QXmppBitsOfBinaryDataList.cpp b/src/base/QXmppBitsOfBinaryDataList.cpp
deleted file mode 100644
index fda17ff7..00000000
--- a/src/base/QXmppBitsOfBinaryDataList.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright (C) 2008-2021 The QXmpp developers
- *
- * Author:
- * Linus Jahn
- *
- * Source:
- * https://github.com/qxmpp-project/qxmpp
- *
- * This file is a part of QXmpp library.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- */
-
-#include "QXmppBitsOfBinaryDataList.h"
-
-#include "QXmppBitsOfBinaryData.h"
-#include "QXmppConstants_p.h"
-
-#include <QDomElement>
-
-///
-/// \class QXmppBitsOfBinaryDataList
-///
-/// QXmppBitsOfBinaryDataList represents a list of data elements from
-/// \xep{0231, Bits of Binary}.
-///
-/// \since QXmpp 1.2
-///
-
-QXmppBitsOfBinaryDataList::QXmppBitsOfBinaryDataList() = default;
-
-QXmppBitsOfBinaryDataList::~QXmppBitsOfBinaryDataList() = default;
-
-/// \cond
-void QXmppBitsOfBinaryDataList::parse(const QDomElement &element)
-{
- // clear previous data elements
- clear();
-
- // parse all <data/> elements
- QDomElement child = element.firstChildElement();
- while (!child.isNull()) {
- if (QXmppBitsOfBinaryData::isBitsOfBinaryData(child)) {
- QXmppBitsOfBinaryData data;
- data.parseElementFromChild(child);
- append(data);
- }
- child = child.nextSiblingElement();
- }
-}
-
-void QXmppBitsOfBinaryDataList::toXml(QXmlStreamWriter *writer) const
-{
- for (const auto &bitsOfBinaryData : *this)
- bitsOfBinaryData.toXmlElementFromChild(writer);
-}
-/// \endcond