[pim/ktnef] src: Don't accidentally export ParserPrivate
Volker Krause <[email protected]> Tue, 4 Aug 2026 16:36:37 +0000 (UTC)
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 17e382ff6db34bf49ff8c99de5f13eccb78127fb by Volker Krause.
Committed on 04/08/2026 at 16:30.
Pushed by vkrause into branch 'master'.
Don't accidentally export ParserPrivate
M +8 -8 src/ktnefparser.cpp
M +1 -4 src/ktnefparser.h
https://invent.kde.org/pim/ktnef/-/commit/17e382ff6db34bf49ff8c99de5f13eccb78127fb
diff --git a/src/ktnefparser.cpp b/src/ktnefparser.cpp
index bf08c20..37e06be 100644
--- a/src/ktnefparser.cpp
+++ b/src/ktnefparser.cpp
@@ -71,7 +71,7 @@ QString formatRecipient(const QMap<int, KTnef::KTNEFProperty *> &props);
* @internal
*/
//@cond PRIVATE
-class KTnef::KTNEFParser::ParserPrivate
+class KTnef::ParserPrivate
{
public:
ParserPrivate()
@@ -116,7 +116,7 @@ KTNEFMessage *KTNEFParser::message() const
return d->message_;
}
-void KTNEFParser::ParserPrivate::deleteDevice()
+void ParserPrivate::deleteDevice()
{
if (deleteDevice_) {
delete device_;
@@ -125,7 +125,7 @@ void KTNEFParser::ParserPrivate::deleteDevice()
deleteDevice_ = false;
}
-bool KTNEFParser::ParserPrivate::decodeMessage()
+bool ParserPrivate::decodeMessage()
{
quint32 i1;
quint32 i2;
@@ -303,7 +303,7 @@ bool KTNEFParser::ParserPrivate::decodeMessage()
return true;
}
-bool KTNEFParser::ParserPrivate::decodeAttachment()
+bool ParserPrivate::decodeAttachment()
{
quint32 i;
quint16 tag;
@@ -380,7 +380,7 @@ void KTNEFParser::setDefaultExtractDir(const QString &dirname)
d->defaultdir_ = dirname;
}
-bool KTNEFParser::ParserPrivate::parseDevice()
+bool ParserPrivate::parseDevice()
{
quint16 u;
quint32 i;
@@ -451,7 +451,7 @@ bool KTNEFParser::extractFile(const QString &filename) const
return d->extractAttachmentTo(att, d->defaultdir_);
}
-bool KTNEFParser::ParserPrivate::extractAttachmentTo(KTNEFAttach *att, const QString &dirname)
+bool ParserPrivate::extractAttachmentTo(KTNEFAttach *att, const QString &dirname)
{
const QString destDir(QDir(dirname).absolutePath()); // get directory path without any "." or ".."
@@ -549,7 +549,7 @@ bool KTNEFParser::openDevice(QIODevice *device)
return d->parseDevice();
}
-void KTNEFParser::ParserPrivate::checkCurrent(int key)
+void ParserPrivate::checkCurrent(int key)
{
if (!current_) {
current_ = new KTNEFAttach();
@@ -873,7 +873,7 @@ quint16 readMAPIValue(QDataStream &stream, MAPI_value &mapi)
}
//@endcond
-bool KTNEFParser::ParserPrivate::readMAPIProperties(QMap<int, KTNEFProperty *> &props, KTNEFAttach *attach)
+bool ParserPrivate::readMAPIProperties(QMap<int, KTNEFProperty *> &props, KTNEFAttach *attach)
{
quint32 n;
MAPI_value mapi;
diff --git a/src/ktnefparser.h b/src/ktnefparser.h
index 397fb3d..950e405 100644
--- a/src/ktnefparser.h
+++ b/src/ktnefparser.h
@@ -25,10 +25,8 @@
namespace KTnef
{
class KTNEFMessage;
-}
+class ParserPrivate;
-namespace KTnef
-{
/*!
* \brief
* Provides an @acronym TNEF parser.
@@ -105,7 +103,6 @@ public:
KTNEFMessage *message() const;
private:
- class ParserPrivate;
std::unique_ptr<ParserPrivate> const d;
Q_DISABLE_COPY(KTNEFParser)