MailImporter
filterpmail.cpp
24 i18n("<p>Select the Pegasus-Mail directory on your system (containing *.CNM, *.PMM and *.MBX files). "
54 dir.entryList(QStringList() << QStringLiteral("*.[cC][nN][mM]") << QStringLiteral("*.[pP][mM][mM]") << QStringLiteral("*.[mM][bB][xX]"),
62 filterInfo()->addErrorLogEntry(i18n("Cannot parse the folder structure; continuing import without subfolder support."));
78void FilterPMail::processFiles(const QString &mask, void (FilterPMail::*workFunc)(const QString &))
159 QString folder(i18nc("define folder name when we will import pegasus mail", "PegasusMail-Import") + QLatin1Char('/'));
166 filterInfo()->addInfoLogEntry(i18n("Importing %1", QStringLiteral("../") + QString::fromLatin1(pmm_head.folder)));
245 filterInfo()->addInfoLogEntry(i18n("Importing %1", QStringLiteral("../") + QString::fromLatin1(pmg_head.folder)));
282 filterInfo()->alert(i18n("Unable to open %1, skipping", chosendir + QLatin1StringView("hierarch.pm")));
void importUnixMailFolder(const QString &file)
imports a 'unix' format mail folder (*.MBX)
Definition filterpmail.cpp:204
void processFiles(const QString &mask, void(FilterPMail::*workFunc)(const QString &))
this looks for all files with the filemask 'mask' and calls the 'workFunc' on each of them
Definition filterpmail.cpp:78
void importMailFolder(const QString &file)
this function imports one mail folder file (*.PMM)
Definition filterpmail.cpp:120
void importNewMessage(const QString &file)
this function imports one *.CNM message
Definition filterpmail.cpp:109
bool parseFolderMatrix(const QString &chosenDir)
this function recreate the folder structure
Definition filterpmail.cpp:275
QString getFolderName(const QString &ID)
this function parse the folder structure
Definition filterpmail.cpp:313
Glorified QString[N] for (a) understandability (b) older gcc compatibility.
Definition mailimporter_utils.h:18
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
char at(qsizetype i) const const
const char * constData() const const
char * data()
bool isEmpty() const const
qsizetype length() const const
QByteArray & remove(qsizetype pos, qsizetype len)
Files
Name
QStringList entryList(Filters filters, SortFlags sort) const const
QString filePath(const QString &fileName) const const
QString homePath()
void setPath(const QString &path)
bool open(FILE *fh, OpenMode mode, FileHandleFlags handleFlags)
void setFileName(const QString &name)
virtual qint64 size() const const override
virtual bool atEnd() const const override
virtual void close() override
bool flush()
virtual qint64 pos() const const override
virtual bool seek(qint64 pos) override
QString getExistingDirectory(QWidget *parent, const QString &caption, const QString &dir, Options options)
QString fileName() const const
QByteArray read(qint64 maxSize)
QByteArray readLine(qint64 maxSize)
qint64 write(const QByteArray &data)
ReadOnly
ConstIterator
const_iterator constBegin() const const
const_iterator constEnd() const const
qsizetype count() const const
QString & append(QChar ch)
QString fromLatin1(QByteArrayView str)
bool isEmpty() const const
QString & prepend(QChar ch)
QString & remove(QChar ch, Qt::CaseSensitivity cs)
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
QStringList split(QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
SkipEmptyParts
virtual QString fileName() const const override
bool open()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.