From c6407d7a43541e8e7fb38643601cb06a83b8e305 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 4 Jun 2017 15:35:24 +0200 Subject: Removed extraContents Seems largely useless now. The only thing this was planned to be used for is to find the sender of temporary nodes (which are not linked in the mimetree I suppose), but that was apparently not yet implemented. Anyways, I think we can solve this over the parttree. --- .../src/domain/mime/mimetreeparser/nodehelper.h | 36 ---------------------- 1 file changed, 36 deletions(-) (limited to 'framework/src/domain/mime/mimetreeparser/nodehelper.h') diff --git a/framework/src/domain/mime/mimetreeparser/nodehelper.h b/framework/src/domain/mime/mimetreeparser/nodehelper.h index bf472413..75b82aaf 100644 --- a/framework/src/domain/mime/mimetreeparser/nodehelper.h +++ b/framework/src/domain/mime/mimetreeparser/nodehelper.h @@ -70,33 +70,12 @@ public: */ void magicSetType(KMime::Content *node, bool autoDecode = true); - /** Attach an extra node to an existing node */ - void attachExtraContent(KMime::Content *topLevelNode, KMime::Content *content); - - /** Get the extra nodes attached to the @param topLevelNode and all sub-nodes of @param topLevelNode */ - QList extraContents(KMime::Content *topLevelNode) const; - /** Get a QTextCodec suitable for this message part */ const QTextCodec *codec(KMime::Content *node); /** Set the charset the user selected for the message to display */ void setOverrideCodec(KMime::Content *node, const QTextCodec *codec); - /** - * Cleanup the attachment temp files - */ - void removeTempFiles(); - - /** - * Add a file to the list of managed temporary files - */ - void addTempFile(const QString &file); - - // Get a href in the form attachment:?place=, used by ObjectTreeParser and - // UrlHandlerManager. - QString asHREF(const KMime::Content *node, const QString &place) const; - KMime::Content *fromHREF(const KMime::Message::Ptr &mMessage, const QUrl &href) const; - /** * @return true if this node is a child or an encapsulated message */ @@ -152,19 +131,6 @@ private: bool unencryptedMessage_helper(KMime::Content *node, QByteArray &resultingData, bool addHeaders, int recursionLevel = 1); - /** Creates a persistent index string that bridges the gap between the - permanent nodes and the temporary ones. - - Used internally for robust indexing. - **/ - QString persistentIndex(const KMime::Content *node) const; - - /** Translates the persistentIndex into a node back - - node: any node of the actually message to what the persistentIndex is interpreded - **/ - KMime::Content *contentFromIndex(KMime::Content *node, const QString &persistentIndex) const; - private: QList mProcessedNodes; QList mNodesUnderProcess; @@ -173,8 +139,6 @@ private: QTextCodec *mLocalCodec; QMap mOverrideCodecs; QMap mPartMetaDatas; - QMap > mExtraContents; - AttachmentTemporaryFilesDirs *mAttachmentFilesDir; friend class NodeHelperTest; }; -- cgit v1.2.3