kde-playground/kdepim/importwizard/sylpheed/sylpheedsettings.h
Ivailo Monev a9b00154bc generic: replace forward class declarations with header inclusions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-31 18:05:48 +00:00

59 lines
2.1 KiB
C++

/*
Copyright (c) 2012-2013 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef SYLPHEEDSETTINGS_H
#define SYLPHEEDSETTINGS_H
#include "abstractsettings.h"
#include <QString>
class ImportWizard;
class KConfigGroup;
#include <QFile>
class SylpheedSettings : public AbstractSettings
{
public:
explicit SylpheedSettings(ImportWizard *parent );
~SylpheedSettings();
virtual void importSettings(const QString& filename, const QString& path);
protected:
void readCustomHeader(QFile *customHeaderFile);
virtual void readGlobalSettings(const KConfigGroup& group);
void readAccount(const KConfigGroup& accountConfig, bool checkMailOnStartup , int intervalCheckMail);
void readIdentity( const KConfigGroup& accountConfig );
QString readTransport( const KConfigGroup& accountConfig );
void readPop3Account(const KConfigGroup& accountConfig, bool checkMailOnStartup , int intervalCheckMail);
void readImapAccount(const KConfigGroup& accountConfig, bool checkMailOnStartup , int intervalCheckMail);
void readSignature( const KConfigGroup& accountConfig, KPIMIdentities::Identity* identity );
virtual void readSettingsColor(const KConfigGroup& group);
virtual void readTemplateFormat(const KConfigGroup& group);
virtual void readTagColor(const KConfigGroup& group);
virtual void readDateFormat(const KConfigGroup& group);
QString convertToKmailTemplate(const QString& templateStr);
};
#endif /* SYLPHEEDSETTINGS_H */