summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <[email protected]>2017-09-13 12:41:51 +0200
committerDaniel Vrátil <[email protected]>2017-09-13 12:42:00 +0200
commit5780ce51a2ccd4f7877365f31fd678c1a41bbbc4 (patch)
tree869dcedee34ea3615fc3d8c8d54958aa416b0cf3
parentcdaa0c21b9486beaf9dfcdda9ab163a6a2eb5ef7 (diff)
Adapt to KCalCore API changes
-rw-r--r--agents/invitations/CMakeLists.txt1
-rw-r--r--plugins/CMakeLists.txt28
-rw-r--r--plugins/akonadi_serializer_kcalcore.cpp5
-rw-r--r--plugins/autotests/kcalcoreserializertest.cpp5
-rw-r--r--resources/birthdays/CMakeLists.txt3
-rw-r--r--resources/birthdays/birthdaysresource.cpp4
-rw-r--r--resources/dav/resource/CMakeLists.txt4
-rw-r--r--resources/dav/resource/davfreebusyhandler.cpp2
-rw-r--r--resources/dav/resource/davgroupwareresource.cpp1
-rw-r--r--resources/dav/resource/settings.cpp4
-rw-r--r--resources/dav/resource/urlconfigurationdialog.cpp1
-rw-r--r--resources/facebook/CMakeLists.txt1
-rw-r--r--resources/facebook/eventslistjob.cpp4
-rw-r--r--resources/facebook/tokenjobs.cpp2
-rw-r--r--resources/google/calendar/CMakeLists.txt3
-rw-r--r--resources/google/calendar/calendarresource.cpp4
-rw-r--r--resources/google/calendar/defaultreminderattribute.cpp4
-rw-r--r--resources/icaldir/CMakeLists.txt7
-rw-r--r--resources/kalarm/kalarm/CMakeLists.txt1
-rw-r--r--resources/kolab/kolabhelpers.cpp6
-rw-r--r--resources/openxchange/CMakeLists.txt12
-rw-r--r--resources/openxchange/configdialog.cpp21
-rw-r--r--resources/openxchange/configdialog.h1
-rw-r--r--resources/openxchange/oxa/incidenceutils.cpp20
-rw-r--r--resources/shared/singlefileresource/CMakeLists.txt6
25 files changed, 83 insertions, 67 deletions
diff --git a/agents/invitations/CMakeLists.txt b/agents/invitations/CMakeLists.txt
index 61be73a..f1437ed 100644
--- a/agents/invitations/CMakeLists.txt
+++ b/agents/invitations/CMakeLists.txt
@@ -16,6 +16,7 @@ target_link_libraries(akonadi_invitations_agent
KF5::Mime
KF5::CalendarCore
KF5::AkonadiAgentBase
+ KF5::I18n
)
if( APPLE )
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
index 9e376d4..8e6860c 100644
--- a/plugins/CMakeLists.txt
+++ b/plugins/CMakeLists.txt
@@ -7,24 +7,44 @@ add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_serializer_plugins\")
set(akonadi_serializer_addressee_PART_SRCS akonadi_serializer_addressee.cpp )
add_library(akonadi_serializer_addressee MODULE ${SERIALIZER_TYPE} ${akonadi_serializer_addressee_PART_SRCS})
-target_link_libraries(akonadi_serializer_addressee KF5::Contacts KF5::AkonadiCore KF5::I18n)
+target_link_libraries(akonadi_serializer_addressee
+ KF5::Contacts
+ KF5::AkonadiCore
+ KF5::I18n
+)
install(TARGETS akonadi_serializer_addressee DESTINATION ${KDE_INSTALL_PLUGINDIR})
set(akonadi_serializer_mail_PART_SRCS akonadi_serializer_mail.cpp)
ecm_qt_declare_logging_category(akonadi_serializer_mail_PART_SRCS HEADER akonadi_serializer_mail_debug.h IDENTIFIER AKONADI_SERIALIZER_MAIL_LOG CATEGORY_NAME org.kde.pim.akonadi_serializer_mail)
add_library(akonadi_serializer_mail MODULE ${SERIALIZER_TYPE} ${akonadi_serializer_mail_PART_SRCS})
-target_link_libraries(akonadi_serializer_mail KF5::Mime KF5::AkonadiCore KF5::AkonadiMime KF5::AkonadiPrivate Qt5::DBus )
+target_link_libraries(akonadi_serializer_mail
+ KF5::Mime
+ KF5::AkonadiCore
+ KF5::AkonadiMime
+ KF5::AkonadiPrivate
+ Qt5::DBus
+)
install(TARGETS akonadi_serializer_mail DESTINATION ${KDE_INSTALL_PLUGINDIR})
set(akonadi_serializer_kcalcore_SRCS akonadi_serializer_kcalcore.cpp)
add_library(akonadi_serializer_kcalcore MODULE ${SERIALIZER_TYPE} ${akonadi_serializer_kcalcore_SRCS})
-target_link_libraries(akonadi_serializer_kcalcore KF5::CalendarUtils KF5::CalendarCore KF5::AkonadiCore)
+target_link_libraries(akonadi_serializer_kcalcore
+ KF5::CalendarUtils
+ KF5::CalendarCore
+ KF5::AkonadiCore
+ KF5::I18n
+)
install(TARGETS akonadi_serializer_kcalcore DESTINATION ${KDE_INSTALL_PLUGINDIR})
set(akonadi_serializer_contactgroup_PART_SRCS akonadi_serializer_contactgroup.cpp )
add_library(akonadi_serializer_contactgroup MODULE ${SERIALIZER_TYPE} ${akonadi_serializer_contactgroup_PART_SRCS})
-target_link_libraries(akonadi_serializer_contactgroup KF5::Contacts KF5::AkonadiCore KF5::I18n KF5::AkonadiContact)
+target_link_libraries(akonadi_serializer_contactgroup
+ KF5::Contacts
+ KF5::AkonadiCore
+ KF5::I18n
+ KF5::AkonadiContact
+)
install(TARGETS akonadi_serializer_contactgroup DESTINATION ${KDE_INSTALL_PLUGINDIR})
set(akonadi_serializer_kalarm_SRCS akonadi_serializer_kalarm.cpp kaeventformatter.cpp)
diff --git a/plugins/akonadi_serializer_kcalcore.cpp b/plugins/akonadi_serializer_kcalcore.cpp
index 1eefd78..2d3b785 100644
--- a/plugins/akonadi_serializer_kcalcore.cpp
+++ b/plugins/akonadi_serializer_kcalcore.cpp
@@ -156,11 +156,6 @@ static QString toString(const QDate &date)
return date.toString();
}
-static QString toString(const KDateTime &dateTime)
-{
- return dateTime.dateTime().toString();
-}
-
static QString toString(const QDateTime &dateTime)
{
return dateTime.toString();
diff --git a/plugins/autotests/kcalcoreserializertest.cpp b/plugins/autotests/kcalcoreserializertest.cpp
index 91b30e9..31f77a9 100644
--- a/plugins/autotests/kcalcoreserializertest.cpp
+++ b/plugins/autotests/kcalcoreserializertest.cpp
@@ -99,8 +99,9 @@ private Q_SLOTS:
Event::Ptr event = Event::Ptr(new Event());
event->setUid(QStringLiteral("12345"));
- event->setDtStart(KDateTime(currentDate));
- event->setDtEnd(KDateTime(currentDate.addDays(1)));
+ event->setDtStart(QDateTime(currentDate, {}));
+ event->setDtEnd(QDateTime(currentDate.addDays(1), {}));
+ event->setAllDay(true);
// ü
const char latin1_umlaut[] = { static_cast<char>(0xFC), '\0' };
diff --git a/resources/birthdays/CMakeLists.txt b/resources/birthdays/CMakeLists.txt
index c557dbd..8998eb4 100644
--- a/resources/birthdays/CMakeLists.txt
+++ b/resources/birthdays/CMakeLists.txt
@@ -31,6 +31,9 @@ target_link_libraries(akonadi_birthdays_resource
KF5::AkonadiAgentBase
KF5::Contacts
KF5::AkonadiWidgets
+ KF5::I18n
+ KF5::TextWidgets
+ KF5::WindowSystem
)
install( TARGETS akonadi_birthdays_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
diff --git a/resources/birthdays/birthdaysresource.cpp b/resources/birthdays/birthdaysresource.cpp
index 5003700..5535842 100644
--- a/resources/birthdays/birthdaysresource.cpp
+++ b/resources/birthdays/birthdaysresource.cpp
@@ -327,8 +327,8 @@ KCalCore::Event::Ptr BirthdaysResource::createAnniversary(const Akonadi::Item &c
KCalCore::Event::Ptr BirthdaysResource::createEvent(const QDate &date)
{
Event::Ptr event(new Event());
- event->setDtStart(KDateTime(date, KDateTime::Spec(KDateTime::ClockTime)));
- event->setDtEnd(KDateTime(date, KDateTime::Spec(KDateTime::ClockTime)));
+ event->setDtStart(QDateTime(date, {}));
+ event->setDtEnd(QDateTime(date, {}));
event->setAllDay(true);
event->setTransparency(Event::Transparent);
diff --git a/resources/dav/resource/CMakeLists.txt b/resources/dav/resource/CMakeLists.txt
index c3d1b36..2e60a85 100644
--- a/resources/dav/resource/CMakeLists.txt
+++ b/resources/dav/resource/CMakeLists.txt
@@ -59,6 +59,10 @@ add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_davgroupware_resource\")
KF5::AkonadiCore
KF5::Wallet
KF5::CalendarCore
+ KF5::Completion
+ KF5::ConfigCore
+ KF5::ConfigWidgets
+ KF5::WindowSystem
KPim::KDAV
)
diff --git a/resources/dav/resource/davfreebusyhandler.cpp b/resources/dav/resource/davfreebusyhandler.cpp
index 1dab18b..1e4b79c 100644
--- a/resources/dav/resource/davfreebusyhandler.cpp
+++ b/resources/dav/resource/davfreebusyhandler.cpp
@@ -60,7 +60,7 @@ void DavFreeBusyHandler::retrieveFreeBusy(const QString &email, const QDateTime
return;
}
- KCalCore::FreeBusy::Ptr fb(new KCalCore::FreeBusy(KDateTime(start), KDateTime(end)));
+ KCalCore::FreeBusy::Ptr fb(new KCalCore::FreeBusy(start, end));
KCalCore::Attendee::Ptr att(new KCalCore::Attendee(QString(), email));
fb->addAttendee(att);
diff --git a/resources/dav/resource/davgroupwareresource.cpp b/resources/dav/resource/davgroupwareresource.cpp
index 33dae35..284c3b5 100644
--- a/resources/dav/resource/davgroupwareresource.cpp
+++ b/resources/dav/resource/davgroupwareresource.cpp
@@ -47,7 +47,6 @@
#include <KCalCore/ICalFormat>
#include <KCalCore/MemoryCalendar>
#include <KCalCore/Todo>
-#include <kdatetime.h>
#include <kjob.h>
#include <attributefactory.h>
diff --git a/resources/dav/resource/settings.cpp b/resources/dav/resource/settings.cpp
index 3d87184..3f1359b 100644
--- a/resources/dav/resource/settings.cpp
+++ b/resources/dav/resource/settings.cpp
@@ -25,7 +25,6 @@
#include "utils.h"
#include "davresource_debug.h"
-#include <kapplication.h>
#include <klineedit.h>
#include <KLocalizedString>
@@ -33,6 +32,7 @@
#include <KDAV/Utils>
+#include <QCoreApplication>
#include <QByteArray>
#include <QDataStream>
#include <QFile>
@@ -376,7 +376,7 @@ void Settings::buildUrlsList()
void Settings::loadMappings()
{
- QString collectionsMappingCacheBase = QStringLiteral("akonadi-davgroupware/%1_c2u.dat").arg(KApplication::applicationName());
+ QString collectionsMappingCacheBase = QStringLiteral("akonadi-davgroupware/%1_c2u.dat").arg(QCoreApplication::applicationName());
mCollectionsUrlsMappingCache = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + collectionsMappingCacheBase;
QFile collectionsMappingsCache(mCollectionsUrlsMappingCache);
diff --git a/resources/dav/resource/urlconfigurationdialog.cpp b/resources/dav/resource/urlconfigurationdialog.cpp
index d3fe830..2e8ae55 100644
--- a/resources/dav/resource/urlconfigurationdialog.cpp
+++ b/resources/dav/resource/urlconfigurationdialog.cpp
@@ -26,7 +26,6 @@
#include <kmessagebox.h>
#include <KLocalizedString>
-#include <KSharedConfigPtr>
#include <QStandardItem>
#include <QStandardItemModel>
#include <QVBoxLayout>
diff --git a/resources/facebook/CMakeLists.txt b/resources/facebook/CMakeLists.txt
index 658a5b8..02ae7bc 100644
--- a/resources/facebook/CMakeLists.txt
+++ b/resources/facebook/CMakeLists.txt
@@ -28,6 +28,7 @@ target_link_libraries(akonadi_facebook_resource
KF5::Wallet
KF5::Codecs
Qt5::WebEngineWidgets
+ KF5::KIOCore
)
install(TARGETS akonadi_facebook_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/resources/facebook/eventslistjob.cpp b/resources/facebook/eventslistjob.cpp
index 630150c..cc36792 100644
--- a/resources/facebook/eventslistjob.cpp
+++ b/resources/facebook/eventslistjob.cpp
@@ -137,11 +137,11 @@ Akonadi::Item EventsListJob::handleResponse(const QJsonObject &data)
}
const QString dtStart = data.value(QLatin1String("start_time")).toString();
- event->setDtStart(KDateTime(parseDateTime(dtStart)));
+ event->setDtStart(parseDateTime(dtStart));
const auto endTime = data.constFind(QLatin1String("end_time"));
if (endTime != dataEnd) {
- event->setDtEnd(KDateTime(parseDateTime(endTime->toString())));
+ event->setDtEnd(parseDateTime(endTime->toString()));
}
QString description = data.value(QLatin1String("description")).toString();
diff --git a/resources/facebook/tokenjobs.cpp b/resources/facebook/tokenjobs.cpp
index bda879e..845ac53 100644
--- a/resources/facebook/tokenjobs.cpp
+++ b/resources/facebook/tokenjobs.cpp
@@ -38,7 +38,7 @@
#include <QWebEngineProfile>
#include <QWebEngineCookieStore>
-#include <KWallet/Wallet>
+#include <KWallet>
#include <KLocalizedString>
diff --git a/resources/google/calendar/CMakeLists.txt b/resources/google/calendar/CMakeLists.txt
index 9775e81..609722f 100644
--- a/resources/google/calendar/CMakeLists.txt
+++ b/resources/google/calendar/CMakeLists.txt
@@ -53,6 +53,9 @@ target_link_libraries(akonadi_googlecalendar_resource
KF5::AkonadiAgentBase
KF5::Wallet
KF5::I18n
+ KF5::WindowSystem
+ KF5::Completion
+ KF5::TextWidgets
)
install(TARGETS akonadi_googlecalendar_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/resources/google/calendar/calendarresource.cpp b/resources/google/calendar/calendarresource.cpp
index 0ac3bf4..4d74d35 100644
--- a/resources/google/calendar/calendarresource.cpp
+++ b/resources/google/calendar/calendarresource.cpp
@@ -810,10 +810,10 @@ void CalendarResource::slotRetrieveFreeBusyJobFinished(KGAPI2::Job *job)
fb->setOrganizer(account()->accountName());
fb->addAttendee(KCalCore::Attendee::Ptr(new KCalCore::Attendee(QString(), queryJob->id())));
// FIXME: is it really sort?
- fb->setDateTime(KDateTime::currentUtcDateTime(), KCalCore::IncidenceBase::RoleSort);
+ fb->setDateTime(QDateTime::currentDateTimeUtc(), KCalCore::IncidenceBase::RoleSort);
Q_FOREACH (const KGAPI2::FreeBusyQueryJob::BusyRange &range, queryJob->busy()) {
- fb->addPeriod(KDateTime(range.busyStart), KDateTime(range.busyEnd));
+ fb->addPeriod(range.busyStart, range.busyEnd);
}
KCalCore::ICalFormat format;
diff --git a/resources/google/calendar/defaultreminderattribute.cpp b/resources/google/calendar/defaultreminderattribute.cpp
index 89fc519..4352616 100644
--- a/resources/google/calendar/defaultreminderattribute.cpp
+++ b/resources/google/calendar/defaultreminderattribute.cpp
@@ -20,8 +20,6 @@
#include <QVariant>
#include <QJsonDocument>
-#include <KCalCore/Utils>
-
#include <KGAPI/Calendar/Reminder>
using namespace KGAPI2;
@@ -100,7 +98,7 @@ KCalCore::Alarm::List DefaultReminderAttribute::alarms(KCalCore::Incidence *inci
KCalCore::Alarm::Ptr alarm(new KCalCore::Alarm(incidence));
alarm->setType(reminder->type());
- alarm->setTime(KCalCore::k2q(incidence->dtStart()));
+ alarm->setTime(incidence->dtStart());
alarm->setStartOffset(reminder->startOffset());
alarm->setEnabled(true);
diff --git a/resources/icaldir/CMakeLists.txt b/resources/icaldir/CMakeLists.txt
index ea5b9ec..2be4138 100644
--- a/resources/icaldir/CMakeLists.txt
+++ b/resources/icaldir/CMakeLists.txt
@@ -29,8 +29,13 @@ endif ()
target_link_libraries(akonadi_icaldir_resource
KF5::AkonadiCore
- KF5::AkonadiAgentBase
+ KF5::AkonadiAgentBase
KF5::CalendarCore
+ KF5::I18n
+ KF5::TextWidgets
+ KF5::KIOWidgets
+ KF5::ConfigWidgets
+ KF5::WindowSystem
)
install(TARGETS akonadi_icaldir_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/resources/kalarm/kalarm/CMakeLists.txt b/resources/kalarm/kalarm/CMakeLists.txt
index 0a785ad..89a3c6d 100644
--- a/resources/kalarm/kalarm/CMakeLists.txt
+++ b/resources/kalarm/kalarm/CMakeLists.txt
@@ -43,6 +43,7 @@ target_link_libraries(akonadi_kalarm_resource
KF5::KIOCore
KF5::AkonadiAgentBase
KF5::DBusAddons
+ KF5::I18n
akonadi-singlefileresource
)
diff --git a/resources/kolab/kolabhelpers.cpp b/resources/kolab/kolabhelpers.cpp
index cc496aa..857fda2 100644
--- a/resources/kolab/kolabhelpers.cpp
+++ b/resources/kolab/kolabhelpers.cpp
@@ -59,7 +59,7 @@ Akonadi::Item getErrorItem(Kolab::FolderType folderType, const QString &remoteId
case Kolab::EventType: {
KCalCore::Event::Ptr event(new KCalCore::Event);
//FIXME Use message creation date time
- event->setDtStart(KDateTime::currentUtcDateTime());
+ event->setDtStart(QDateTime::currentDateTimeUtc());
event->setSummary(i18n("Corrupt Event"));
event->setDescription(i18n("Event could not be read. Delete this event to remove it from the server. Technical information: remote identifier %1", remoteId));
item.setMimeType(KCalCore::Event::eventMimeType());
@@ -69,7 +69,7 @@ Akonadi::Item getErrorItem(Kolab::FolderType folderType, const QString &remoteId
case Kolab::TaskType: {
KCalCore::Todo::Ptr task(new KCalCore::Todo);
//FIXME Use message creation date time
- task->setDtStart(KDateTime::currentUtcDateTime());
+ task->setDtStart(QDateTime::currentDateTimeUtc());
task->setSummary(i18n("Corrupt Task"));
task->setDescription(i18n("Task could not be read. Delete this task to remove it from the server."));
item.setMimeType(KCalCore::Todo::todoMimeType());
@@ -79,7 +79,7 @@ Akonadi::Item getErrorItem(Kolab::FolderType folderType, const QString &remoteId
case Kolab::JournalType: {
KCalCore::Journal::Ptr journal(new KCalCore::Journal);
//FIXME Use message creation date time
- journal->setDtStart(KDateTime::currentUtcDateTime());
+ journal->setDtStart(QDateTime::currentDateTimeUtc());
journal->setSummary(i18n("Corrupt journal"));
journal->setDescription(i18n("Journal could not be read. Delete this journal to remove it from the server."));
item.setMimeType(KCalCore::Journal::journalMimeType());
diff --git a/resources/openxchange/CMakeLists.txt b/resources/openxchange/CMakeLists.txt
index 78ce4eb..54ea801 100644
--- a/resources/openxchange/CMakeLists.txt
+++ b/resources/openxchange/CMakeLists.txt
@@ -56,7 +56,17 @@ if( APPLE )
endif ()
-target_link_libraries(akonadi_openxchange_resource KF5::AkonadiAgentBase KF5::AkonadiCore KF5::Contacts KF5::KIOCore KF5::CalendarCore KF5::AkonadiContact )
+target_link_libraries(akonadi_openxchange_resource
+ KF5::AkonadiAgentBase
+ KF5::AkonadiCore
+ KF5::Contacts
+ KF5::KIOCore
+ KF5::CalendarCore
+ KF5::AkonadiContact
+ KF5::I18n
+ KF5::Completion
+ KF5::WindowSystem
+)
install(TARGETS akonadi_openxchange_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/resources/openxchange/configdialog.cpp b/resources/openxchange/configdialog.cpp
index 9090fe8..e81bede 100644
--- a/resources/openxchange/configdialog.cpp
+++ b/resources/openxchange/configdialog.cpp
@@ -23,8 +23,6 @@
#include "settings.h"
#include "ui_configdialog.h"
-#include <kaboutdata.h>
-#include <kaboutapplicationdialog.h>
#include <kconfigdialogmanager.h>
#include <kmessagebox.h>
#include <kwindowsystem.h>
@@ -47,13 +45,10 @@ ConfigDialog::ConfigDialog(WId windowId)
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
- QPushButton *user1Button = new QPushButton;
- buttonBox->addButton(user1Button, QDialogButtonBox::ActionRole);
connect(buttonBox, &QDialogButtonBox::accepted, this, &ConfigDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &ConfigDialog::reject);
mainLayout->addWidget(buttonBox);
- user1Button->setText(i18n("About..."));
-
+
setWindowTitle(i18n("Open-Xchange Configuration"));
Ui::ConfigDialog ui;
@@ -72,7 +67,6 @@ ConfigDialog::ConfigDialog(WId windowId)
mManager->updateWidgets();
connect(okButton, &QPushButton::clicked, this, &ConfigDialog::save);
- connect(user1Button, &QPushButton::clicked, this, &ConfigDialog::showAboutDialog);
connect(mServerEdit, &KLineEdit::textChanged, this, &ConfigDialog::updateButtonState);
connect(mUserEdit, &KLineEdit::textChanged, this, &ConfigDialog::updateButtonState);
connect(mCheckConnectionButton, &QPushButton::clicked, this, &ConfigDialog::checkConnection);
@@ -86,19 +80,6 @@ void ConfigDialog::save()
Settings::self()->save();
}
-void ConfigDialog::showAboutDialog()
-{
- KAboutData aboutData(QStringLiteral("ox"), i18n("Open-Xchange"), QStringLiteral("0.1"),
- i18n("Akonadi Open-Xchange Resource"),
- KAboutLicense::LGPL,
- i18n("(c) 2009 by Tobias Koenig (credativ GmbH)"));
- aboutData.addAuthor(i18n("Tobias Koenig"), i18n("Current maintainer"), QStringLiteral("[email protected]"));
- aboutData.addCredit(i18n("credativ GmbH"), i18n("Funded and supported"), QStringLiteral("http://www.credativ.com"));
-
- KAboutApplicationDialog dlg(aboutData, this);
- dlg.exec();
-}
-
void ConfigDialog::updateButtonState()
{
mCheckConnectionButton->setEnabled(!mServerEdit->text().isEmpty() && !mUserEdit->text().isEmpty());
diff --git a/resources/openxchange/configdialog.h b/resources/openxchange/configdialog.h
index b63e4ef..9093efb 100644
--- a/resources/openxchange/configdialog.h
+++ b/resources/openxchange/configdialog.h
@@ -35,7 +35,6 @@ public:
private Q_SLOTS:
void save();
- void showAboutDialog();
void updateButtonState();
void checkConnection();
void checkConnectionJobFinished(KJob *);
diff --git a/resources/openxchange/oxa/incidenceutils.cpp b/resources/openxchange/oxa/incidenceutils.cpp
index a2db044..5ab508f 100644
--- a/resources/openxchange/oxa/incidenceutils.cpp
+++ b/resources/openxchange/oxa/incidenceutils.cpp
@@ -140,15 +140,11 @@ static void parseEventAttribute(const QDomElement &element,
const QString text = OXUtils::readString(element.text());
if (tagName == QLatin1String("start_date")) {
- KDateTime dateTime = KDateTime(OXUtils::readDateTime(element.text()), KDateTime::UTC);
- if (event->allDay()) {
- dateTime.setDateOnly(true);
- }
-
+ QDateTime dateTime = OXUtils::readDateTime(element.text());
event->setDtStart(dateTime);
} else if (tagName == QLatin1String("end_date")) {
- KDateTime dateTime = KDateTime(OXUtils::readDateTime(element.text()), KDateTime::UTC);
+ QDateTime dateTime = OXUtils::readDateTime(element.text());
if (event->allDay()) {
dateTime = dateTime.addSecs(-1);
}
@@ -167,12 +163,12 @@ static void parseTodoAttribute(const QDomElement &element,
const QString text = OXUtils::readString(element.text());
if (tagName == QLatin1String("start_date")) {
- const KDateTime dateTime = KDateTime(OXUtils::readDateTime(element.text()), KDateTime::UTC);
+ const QDateTime dateTime = OXUtils::readDateTime(element.text());
if (dateTime.isValid()) {
todo->setDtStart(dateTime);
}
} else if (tagName == QLatin1String("end_date")) {
- const KDateTime dateTime = KDateTime(OXUtils::readDateTime(element.text()), KDateTime::UTC);
+ const QDateTime dateTime = OXUtils::readDateTime(element.text());
if (dateTime.isValid()) {
todo->setDtDue(dateTime);
}
@@ -371,9 +367,9 @@ static void createEventAttributes(QDomDocument &document, QDomElement &parent,
DAVUtils::addOxElement(document, parent, QStringLiteral("end_date"), OXUtils::writeDate(event->dtEnd().date()));
}
} else {
- DAVUtils::addOxElement(document, parent, QStringLiteral("start_date"), OXUtils::writeDateTime(event->dtStart().dateTime()));
+ DAVUtils::addOxElement(document, parent, QStringLiteral("start_date"), OXUtils::writeDateTime(event->dtStart()));
if (event->hasEndDate()) {
- DAVUtils::addOxElement(document, parent, QStringLiteral("end_date"), OXUtils::writeDateTime(event->dtEnd().dateTime()));
+ DAVUtils::addOxElement(document, parent, QStringLiteral("end_date"), OXUtils::writeDateTime(event->dtEnd()));
}
}
@@ -396,13 +392,13 @@ static void createTaskAttributes(QDomDocument &document, QDomElement &parent,
const KCalCore::Todo::Ptr &todo)
{
if (todo->hasStartDate()) {
- DAVUtils::addOxElement(document, parent, QStringLiteral("start_date"), OXUtils::writeDateTime(todo->dtStart().dateTime()));
+ DAVUtils::addOxElement(document, parent, QStringLiteral("start_date"), OXUtils::writeDateTime(todo->dtStart()));
} else {
DAVUtils::addOxElement(document, parent, QStringLiteral("start_date"));
}
if (todo->hasDueDate()) {
- DAVUtils::addOxElement(document, parent, QStringLiteral("end_date"), OXUtils::writeDateTime(todo->dtDue().dateTime()));
+ DAVUtils::addOxElement(document, parent, QStringLiteral("end_date"), OXUtils::writeDateTime(todo->dtDue()));
} else {
DAVUtils::addOxElement(document, parent, QStringLiteral("end_date"));
}
diff --git a/resources/shared/singlefileresource/CMakeLists.txt b/resources/shared/singlefileresource/CMakeLists.txt
index 606bb05..339f14b 100644
--- a/resources/shared/singlefileresource/CMakeLists.txt
+++ b/resources/shared/singlefileresource/CMakeLists.txt
@@ -37,14 +37,14 @@ generate_export_header(akonadi-singlefileresource BASE_NAME akonadi-singlefilere
target_link_libraries(akonadi-singlefileresource
PUBLIC
KF5::I18n
+ KF5::Completion
+ KF5::KIOWidgets
+ KF5::ConfigWidgets
PRIVATE
KF5::AkonadiCore
KF5::AkonadiAgentBase
KF5::KIOCore
KF5::IMAP
- KF5::Completion
- KF5::KIOWidgets
- KF5::ConfigWidgets
KF5::WindowSystem
)