2 Copyright (c) 2012-2013 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 "importcalendarpage.h"
19 #include "ui_importcalendarpage.h"
21 ImportCalendarPage::ImportCalendarPage(QWidget
*parent
) :
23 ui(new Ui::ImportCalendarPage
)
26 connect( ui
->importCalendar
, SIGNAL(clicked()), SIGNAL(importCalendarClicked()));
29 ImportCalendarPage::~ImportCalendarPage()
34 void ImportCalendarPage::addImportInfo( const QString
& log
)
36 ui
->logCalendar
->addInfoLogEntry( log
);
39 void ImportCalendarPage::addImportError( const QString
& log
)
41 ui
->logCalendar
->addErrorLogEntry( log
);
44 void ImportCalendarPage::setImportButtonEnabled(bool enabled
)
46 ui
->importCalendar
->setEnabled(enabled
);