aboutsummaryrefslogtreecommitdiff
path: root/deskutils/kdepim44/files
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/kdepim44/files')
-rw-r--r--deskutils/kdepim44/files/patch-kmail-partNode.cpp19
-rw-r--r--deskutils/kdepim44/files/patch-kmailcvt-filter_oe.cxx49
-rw-r--r--deskutils/kdepim44/files/patch-kmailcvt-filter_oe.hxx18
-rw-r--r--deskutils/kdepim44/files/patch-kmailcvt-filter_pmail.cxx15
-rw-r--r--deskutils/kdepim44/files/patch-kmailcvt-filter_pmail.hxx19
-rw-r--r--deskutils/kdepim44/files/patch-kmailcvt-filters.hxx63
6 files changed, 0 insertions, 183 deletions
diff --git a/deskutils/kdepim44/files/patch-kmail-partNode.cpp b/deskutils/kdepim44/files/patch-kmail-partNode.cpp
deleted file mode 100644
index c15a8f6f5a9c..000000000000
--- a/deskutils/kdepim44/files/patch-kmail-partNode.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
---- kmail/partNode.cpp.orig Tue Aug 2 00:59:57 2005
-+++ kmail/partNode.cpp Tue Aug 2 01:01:06 2005
-@@ -36,6 +36,7 @@
- #include "kmmimeparttree.h"
- #include <mimelib/utility.h>
- #include <qregexp.h>
-+#include <kasciistricmp.h>
-
- /*
- ===========================================================================
-@@ -414,7 +415,7 @@
- partNode* partNode::findNodeForDwPart( DwBodyPart* part )
- {
- partNode* found = 0;
-- if( dwPart()->partId() == part->partId() )
-+ if( kasciistricmp( dwPart()->partId(), part->partId() ) == 0 )
- return this;
- if( mChild )
- found = mChild->findNodeForDwPart( part );
diff --git a/deskutils/kdepim44/files/patch-kmailcvt-filter_oe.cxx b/deskutils/kdepim44/files/patch-kmailcvt-filter_oe.cxx
deleted file mode 100644
index 5fa379673746..000000000000
--- a/deskutils/kdepim44/files/patch-kmailcvt-filter_oe.cxx
+++ /dev/null
@@ -1,49 +0,0 @@
---- kmailcvt/filter_oe.cxx Mon May 23 14:12:15 2005
-+++ kmailcvt/filter_oe.cxx Tue Jun 21 14:50:03 2005
-@@ -389,20 +389,20 @@
- {
- bool found = false;
- bool foundFilename = false;
-- QString folder = "";
-+ QString folder;
- // we must do this because folder with more than one upper letter
- // at start have maybe not a file named like the folder !!!
- QString search = filename.lower();
-
- while (!found)
- {
-- for ( QValueList<QString[4]>::Iterator it = folderStructure.begin(); it != folderStructure.end(); it++) {
-- QString tmp[4] = *it;
-+ for ( FolderStructureIterator it = folderStructure.begin(); it != folderStructure.end(); it++) {
-+ FolderStructure tmp = *it;
- if(foundFilename == false) {
- QString _tmpFileName = tmp[1];
- _tmpFileName = _tmpFileName.lower();
- if(_tmpFileName == search) {
-- folder.prepend( "-" + tmp[0]);
-+ folder.prepend( tmp[0] + QString::fromLatin1("-") );
- search = tmp[3];
- foundFilename = true;
- }
-@@ -410,18 +410,18 @@
- QString _currentID = tmp[2];
- QString _parentID = tmp[3];
- if(_currentID == search) {
-- if(_parentID == "") { // this is the root of the folder
-+ if(_parentID.isEmpty()) { // this is the root of the folder
- found = true;
- break;
- } else {
-- folder.prepend( "-" + tmp[0]);
-+ folder.prepend( tmp[0] + QString::fromLatin1("-") );
- search = tmp[3];
- }
- }
- }
- }
- // need to break the while loop maybe in some cases
-- if((foundFilename == false) && (folder == "")) return folder;
-+ if((foundFilename == false) && (folder.isEmpty())) return folder;
- }
- return folder;
- }
diff --git a/deskutils/kdepim44/files/patch-kmailcvt-filter_oe.hxx b/deskutils/kdepim44/files/patch-kmailcvt-filter_oe.hxx
deleted file mode 100644
index 4abb9299b210..000000000000
--- a/deskutils/kdepim44/files/patch-kmailcvt-filter_oe.hxx
+++ /dev/null
@@ -1,18 +0,0 @@
-Index: filter_oe.hxx
-===================================================================
---- kmailcvt/filter_oe.hxx (revision 427509)
-+++ kmailcvt/filter_oe.hxx (working copy)
-@@ -63,8 +63,12 @@
- bool parsedFolder;
- /** true if the current parsing file is the folder file */
- bool currentIsFolderFile;
-+
-+ /** Folder structure here has 4 entries. */
-+ typedef FolderStructureBase<4> FolderStructure;
- /** matrix with information about the folder structure*/
-- QValueList<QString[4]> folderStructure;
-+ QValueList<FolderStructure> folderStructure;
-+ typedef QValueList<FolderStructure>::Iterator FolderStructureIterator;
-
- /** name of the current folder */
- QString folderName;
diff --git a/deskutils/kdepim44/files/patch-kmailcvt-filter_pmail.cxx b/deskutils/kdepim44/files/patch-kmailcvt-filter_pmail.cxx
deleted file mode 100644
index 2536ed1244ff..000000000000
--- a/deskutils/kdepim44/files/patch-kmailcvt-filter_pmail.cxx
+++ /dev/null
@@ -1,15 +0,0 @@
-Index: filter_pmail.cxx
-===================================================================
---- kmailcvt/filter_pmail.cxx (revision 427509)
-+++ kmailcvt/filter_pmail.cxx (working copy)
-@@ -325,8 +325,8 @@
-
- while (!found)
- {
-- for ( QValueList<QString[5]>::Iterator it = folderMatrix.begin(); it != folderMatrix.end(); it++) {
-- QString tmp[5] = *it;
-+ for ( FolderStructureIterator it = folderMatrix.begin(); it != folderMatrix.end(); it++) {
-+ FolderStructure tmp = *it;
-
- QString _ID = tmp[2];
- if(_ID == search) { \ No newline at end of file
diff --git a/deskutils/kdepim44/files/patch-kmailcvt-filter_pmail.hxx b/deskutils/kdepim44/files/patch-kmailcvt-filter_pmail.hxx
deleted file mode 100644
index ac1e772c28ea..000000000000
--- a/deskutils/kdepim44/files/patch-kmailcvt-filter_pmail.hxx
+++ /dev/null
@@ -1,19 +0,0 @@
-Index: filter_pmail.hxx
-===================================================================
---- kmailcvt/filter_pmail.hxx (revision 427509)
-+++ kmailcvt/filter_pmail.hxx (working copy)
-@@ -50,8 +50,12 @@
- QDir dir;
- /** pointer to the info */
- FilterInfo * inf;
-- /** QStringList with the foldernames, First String contains the ID, the second the folder */
-- QValueList<QString[5]> folderMatrix;
-+
-+ /** Folder structure here has 5 entries. */
-+ typedef FolderStructureBase<5> FolderStructure;
-+ /** List with the foldernames, First String contains the ID, the second the folder. Rest have no semantics at all but are essential anyway. */
-+ QValueList<FolderStructure> folderMatrix;
-+ typedef QValueList<FolderStructure>::Iterator FolderStructureIterator;
-
- bool folderParsed;
- \ No newline at end of file
diff --git a/deskutils/kdepim44/files/patch-kmailcvt-filters.hxx b/deskutils/kdepim44/files/patch-kmailcvt-filters.hxx
deleted file mode 100644
index 44a41ff10007..000000000000
--- a/deskutils/kdepim44/files/patch-kmailcvt-filters.hxx
+++ /dev/null
@@ -1,63 +0,0 @@
-Index: filters.hxx
-===================================================================
---- kmailcvt/filters.hxx (revision 427509)
-+++ kmailcvt/filters.hxx (working copy)
-@@ -86,7 +86,58 @@
- QString m_info;
- };
-
-+/** Glorified QString[N] for (a) understandability (b) older gcc
-+* compatibility, see for instance
-+* http://mail.kde.org/pipermail/kmail-devel/2005-April/017690.html
-+*/
-+template <unsigned int size> class FolderStructureBase
-+{
-+public:
-+ typedef QString NString[size];
-+ /** Constructor. Need a default constructor for QValueList. */
-+ FolderStructureBase() {} ;
-
-+ /** Constructor. Turn N QStrings into a folder structure
-+ * description.
-+ */
-+ FolderStructureBase(const NString &s)
-+ {
-+ for(unsigned int i=0; i<size; i++) d[i]=s[i];
-+ } ;
-+
-+ /** Copy Constructor. */
-+ FolderStructureBase(const FolderStructureBase &s)
-+ {
-+ for(unsigned int i=0; i<size; i++) d[i]=s[i];
-+ } ;
-+
-+ /** Assignment operator. Does the same thing as
-+ * the copy constructor.
-+ */
-+ FolderStructureBase &operator =(const FolderStructureBase &s)
-+ {
-+ for(unsigned int i=0; i<size; i++) d[i]=s[i];
-+ return *this;
-+ } ;
-+
-+ /** Access the different fields. There doesn't seem to
-+ * be a real semantics for the fields.
-+ */
-+ const QString operator [](unsigned int i) const
-+ {
-+ if (i<size) return d[i]; else return QString::null;
-+ } ;
-+
-+ /** Access the different fields, for writing. */
-+ QString &operator [](unsigned int i)
-+ {
-+ Q_ASSERT(i<size);
-+ if (i<size) return d[i]; else return d[0];
-+ } ;
-+private:
-+ QString d[size];
-+} ;
-+
- #endif
-
- // vim: ts=2 sw=2 et \ No newline at end of file