MailImporter

filteroe.h
1 /***************************************************************************
2  filter_oe.h - Outlook Express mail import
3  -------------------
4  begin : Sat Feb 1 2003
5  copyright : (C) 2003 by Laurence Anderson
6  email : [email protected]
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef MAILIMPORTER_FILTER_OE_H
19 #define MAILIMPORTER_FILTER_OE_H
20 
21 #include "filters.h"
22 
23 #include <QList>
24 
25 #include "mailimporter_utils.h"
26 namespace MailImporter {
31 class MAILIMPORTER_EXPORT FilterOE : public Filter
32 {
33 public:
34  FilterOE();
35  ~FilterOE() override;
36 
37  void import() override;
38  void importMails(const QString &maildir);
39 
40 private:
41  void importMailBox(const QString &fileName);
42  void mbxImport(QDataStream &ds);
43  void dbxImport(QDataStream &ds);
44  void dbxReadIndex(QDataStream &ds, int filePos);
45  void dbxReadDataBlock(QDataStream &ds, int filePos);
46  void dbxReadEmail(QDataStream &ds, int filePos);
47 
49  Q_REQUIRED_RESULT QString parseFolderOEString(QDataStream &ds, int filePos);
50  Q_REQUIRED_RESULT QString getFolderName(const QString &filename);
51 
53  int currentFile;
55  int totalFiles;
57  int totalEmails;
59  int currentEmail;
61  int count0x04;
63  int count0x84;
64 
66  bool parsedFolder;
68  bool currentIsFolderFile;
69 
78  QList<FolderStructure> folderStructure;
79  typedef QList<FolderStructure>::Iterator FolderStructureIterator;
80 
82  QString folderName;
84 };
85 }
86 
87 #endif
imports outlook text messages into KMail
Definition: filteroe.h:31
The Filter class.
Definition: filters.h:39
Glorified QString[N] for (a) understandability (b) older gcc compatibility.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 1 2020 23:02:54 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.