MailImporter::FilterThunderbird

Search for usage in LXR

#include <filterthunderbird.h>

Inheritance diagram for MailImporter::FilterThunderbird:

Public Member Functions

 FilterThunderbird ()
 
 ~FilterThunderbird () override
 
void import () override
 
void importMails (const QString &maildir)
 
- Public Member Functions inherited from MailImporter::Filter
 Filter (const QString &name, const QString &author, const QString &info=QString())
 
QString author () const
 
void clear ()
 
void clearCountDuplicate ()
 
int countDuplicates () const
 
MailImporter::FilterImporterBasefilterImporter () const
 
MailImporter::FilterInfofilterInfo () const
 
QString info () const
 
QString mailDir () const
 
QString name () const
 
void setAuthor (const QString &)
 
void setFilterImporter (MailImporter::FilterImporterBase *importer)
 
void setFilterInfo (MailImporter::FilterInfo *info)
 
void setInfo (const QString &)
 
void setMailDir (const QString &mailDir)
 
void setName (const QString &)
 

Static Public Member Functions

static QString defaultProfile (const QString &defaultSettingPath, QWidget *parent=nullptr)
 
static QString defaultSettingsPath ()
 
static QString isMailerFound ()
 
static QMap< QString, QStringlistProfile (QString &currentProfile, const QString &defaultSettingPath)
 

Protected Member Functions

virtual QString defaultInstallFolder () const
 
virtual QString settingsPath ()
 
- Protected Member Functions inherited from MailImporter::Filter
bool importMessage (const QString &folderName, const QString &msgPath, bool duplicateCheck, const MessageStatus &status=MailImporter::MessageStatus())
 

Additional Inherited Members

- Static Protected Member Functions inherited from MailImporter::Filter
static int countDirectory (const QDir &dir, bool searchHiddenDirectory)
 

Detailed Description

Imports Thunderbird mail folder recursively, keeping the folder structure.

Author
Danny Kukawka

Definition at line 20 of file filterthunderbird.h.

Constructor & Destructor Documentation

◆ FilterThunderbird()

FilterThunderbird::FilterThunderbird ( )

Default constructor.

Definition at line 23 of file filterthunderbird.cpp.

◆ ~FilterThunderbird()

FilterThunderbird::~FilterThunderbird ( )
override

Destructor.

Definition at line 37 of file filterthunderbird.cpp.

Member Function Documentation

◆ defaultInstallFolder()

QString FilterThunderbird::defaultInstallFolder ( ) const
nodiscardprotectedvirtual

Definition at line 124 of file filterthunderbird.cpp.

◆ defaultProfile()

QString FilterThunderbird::defaultProfile ( const QString & defaultSettingPath,
QWidget * parent = nullptr )
staticnodiscard

Definition at line 71 of file filterthunderbird.cpp.

◆ defaultSettingsPath()

QString FilterThunderbird::defaultSettingsPath ( )
staticnodiscard

Definition at line 66 of file filterthunderbird.cpp.

◆ import()

void FilterThunderbird::import ( )
overridevirtual

We ask the user to choose Thunderbird's root directory. This should be usually ~/.thunderbird/xxxx.default/Mail/Local Folders/

Implements MailImporter::Filter.

Definition at line 134 of file filterthunderbird.cpp.

◆ importMails()

void FilterThunderbird::importMails ( const QString & maildir)

If the user only select homedir no import needed because there should be no files and we surely import wrong files.

Recursive import of the MailArchives

import last but not least all archives from the root-dir

Definition at line 166 of file filterthunderbird.cpp.

◆ isMailerFound()

QString FilterThunderbird::isMailerFound ( )
staticnodiscard

Definition at line 41 of file filterthunderbird.cpp.

◆ listProfile()

QMap< QString, QString > FilterThunderbird::listProfile ( QString & currentProfile,
const QString & defaultSettingPath )
staticnodiscard

Definition at line 92 of file filterthunderbird.cpp.

◆ settingsPath()

QString FilterThunderbird::settingsPath ( )
nodiscardprotectedvirtual

Definition at line 129 of file filterthunderbird.cpp.


The documentation for this class was generated from the following files:
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

KDE's Doxygen guidelines are available online.