Commit 2af08367 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Move all in private. Rename method

parent 62657471
......@@ -332,10 +332,10 @@ void FilterOE::dbxReadDataBlock(QDataStream &ds, int filePos)
// this is a folderfile
if (type == 0x02) {
// qCDebug(MAILIMPORTER_LOG) <<"**** FOLDER: descriptive name ****";
folderEntry[0] = parseFolderString(ds, filePos + 12 + value + (count * 4));
folderEntry[0] = parseFolderOEString(ds, filePos + 12 + value + (count * 4));
} else if (type == 0x03) {
// qCDebug(MAILIMPORTER_LOG) <<"**** FOLDER: filename ****";
folderEntry[1] = parseFolderString(ds, filePos + 12 + value + (count * 4));
folderEntry[1] = parseFolderOEString(ds, filePos + 12 + value + (count * 4));
} else if (type == 0x80) {
// qCDebug(MAILIMPORTER_LOG) <<"**** FOLDER: current ID ****";
......@@ -397,7 +397,7 @@ void FilterOE::dbxReadEmail(QDataStream &ds, int filePos)
}
/* ------------------- FolderFile support ------------------- */
QString FilterOE::parseFolderString(QDataStream &ds, int filePos)
QString FilterOE::parseFolderOEString(QDataStream &ds, int filePos)
{
char tmp;
QString returnString;
......
......@@ -38,7 +38,7 @@ public:
void import() Q_DECL_OVERRIDE;
void importMails(const QString &maildir);
protected:
private:
void importMailBox(const QString &fileName);
void mbxImport(QDataStream &ds);
void dbxImport(QDataStream &ds);
......@@ -47,10 +47,9 @@ protected:
void dbxReadEmail(QDataStream &ds, int filePos);
/** helperfunctions for folder structure support */
QString parseFolderString(QDataStream &ds, int filePos);
QString parseFolderOEString(QDataStream &ds, int filePos);
QString getFolderName(const QString &filename);
private: // Private methods
/** which file (of totalFiles) is now in the work? */
int currentFile;
/** total number of files that get imported */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment