2
Copyright (c) 2012 Montel Laurent <montel@kde.org>
4
This program is free software; you can redistribute it and/or modify it
5
under the terms of the GNU General Public License, version 2, as
6
published by the Free Software Foundation.
8
This program is distributed in the hope that it will be useful, but
9
WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
General Public License for more details.
13
You should have received a copy of the GNU General Public License along
14
with this program; if not, write to the Free Software Foundation, Inc.,
15
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
#include "selecttypewidget.h"
19
#include "ui_selecttypewidget.h"
21
SelectTypeWidget::SelectTypeWidget(QWidget *parent) :
23
ui(new Ui::SelectTypeWidget)
28
SelectTypeWidget::~SelectTypeWidget()
33
BackupMailUtil::BackupTypes SelectTypeWidget::backupTypesSelected() const
35
BackupMailUtil::BackupTypes types = BackupMailUtil::None;
36
if(ui->resources->isChecked())
38
types|= BackupMailUtil::Resources;
40
if(ui->mailtransport->isChecked())
42
types|= BackupMailUtil::MailTransport;
44
if(ui->config->isChecked())
46
types|= BackupMailUtil::Config;
48
if(ui->identity->isChecked())
50
types|= BackupMailUtil::Identity;
52
if(ui->mails->isChecked())
54
types|= BackupMailUtil::Mails;
56
if(ui->akonadi->isChecked())
58
types|= BackupMailUtil::AkonadiDb;
64
#include "selecttypewidget.moc"