Commit 9d97a37e authored by Laurent Montel's avatar Laurent Montel 😁

Make it compile

parent f482abf1
......@@ -30,7 +30,8 @@ endmacro()
add_subdirectory( maildispatcher )
add_subdirectory( newmailnotifier )
add_subdirectory( migration )
#reactivate it
#add_subdirectory( migration )
add_subdirectory( invitations )
install(FILES akonadinepomukfeederagent.desktop DESTINATION "${CMAKE_INSTALL_PREFIX}/share/akonadi/agents")
kde_enable_exceptions()
set(KF5_VERSION "4.98.0")
set(QT_REQUIRED_VERSION "5.2.0")
......@@ -34,6 +34,7 @@ target_link_libraries(akonadi_invitations_agent
KF5::MailTransport
KF5::CalendarCore
KF5::AkonadiAgentBase
KF5::PimIdentities
)
if (Q_WS_MAC)
......
......@@ -32,7 +32,7 @@
#include <ItemFetchJob>
#include <ItemFetchScope>
#include <ItemModifyJob>
#include <kmime/messageflags.h>
#include <akonadi/kmime/messageflags.h>
#include <resourcesynchronizationjob.h>
#include <specialcollections.h>
#include <specialcollectionsrequestjob.h>
......@@ -52,6 +52,7 @@
#include <kpimidentities/identitymanager.h>
#include <KSystemTimeZones>
#include <KStandardDirs>
#include <KGlobal>
#include <QtCore/QFileInfo>
#include <QtCore/QTimer>
......
kde_enable_exceptions()
#Reactivate it
#add_subdirectory( tests )
......
......@@ -166,7 +166,8 @@ void MailDispatcherAgent::Private::dispatch()
if ( !errorOccurred ) {
KNotification *notify = new KNotification( QLatin1String("emailsent") );
notify->setComponentData( q->componentData() );
//QT5
//notify->setComponentName( q->componentData() );
notify->setTitle( i18nc( "Notification title when email was sent", "E-Mail Successfully Sent" ) );
notify->setText( i18nc( "Notification when the email was sent", "Your E-Mail has been sent successfully." ) );
notify->sendEvent();
......@@ -335,7 +336,8 @@ void MailDispatcherAgent::Private::sendResult( KJob *job )
kDebug() << "Sending failed. error:" << job->errorString();
KNotification *notify = new KNotification( QLatin1String("sendingfailed") );
notify->setComponentData( q->componentData() );
//QT5
//notify->setComponentName( q->componentData() );
notify->setTitle( i18nc( "Notification title when email sending failed", "E-Mail Sending Failed" ) );
notify->setText( job->errorString() );
notify->sendEvent();
......
......@@ -26,11 +26,11 @@
#include <KDebug>
#include <KLocalizedString>
#include <Akonadi/Attribute>
#include <Akonadi/Item>
#include <Akonadi/ItemFetchJob>
#include <Akonadi/ItemFetchScope>
#include <Akonadi/Monitor>
#include <Attribute>
#include <Item>
#include <ItemFetchJob>
#include <ItemFetchScope>
#include <Monitor>
#include <akonadi/kmime/addressattribute.h>
#include <akonadi/kmime/messageflags.h>
#include <akonadi/kmime/specialmailcollections.h>
......
......@@ -21,19 +21,19 @@
#include "storeresultjob.h"
#include <akonadi/agentinstance.h>
#include <akonadi/agentmanager.h>
#include <akonadi/collection.h>
#include <akonadi/dbusconnectionpool.h>
#include <akonadi/item.h>
#include <akonadi/itemdeletejob.h>
#include <akonadi/itemmodifyjob.h>
#include <akonadi/itemmovejob.h>
#include <akonadi/collectionfetchjob.h>
#include <agentinstance.h>
#include <agentmanager.h>
#include <collection.h>
#include <dbusconnectionpool.h>
#include <item.h>
#include <itemdeletejob.h>
#include <itemmodifyjob.h>
#include <itemmovejob.h>
#include <collectionfetchjob.h>
#include <akonadi/kmime/addressattribute.h>
#include <akonadi/kmime/messageparts.h>
#include <akonadi/kmime/specialmailcollections.h>
#include <akonadi/transportresourcebase.h>
#include <transportresourcebase.h>
#include <kdebug.h>
#include <klocalizedstring.h>
#include <kmime/kmime_message.h>
......
......@@ -21,9 +21,10 @@
#include "sentactionhandler.h"
#include <akonadi/itemfetchjob.h>
#include <akonadi/itemmodifyjob.h>
#include <itemfetchjob.h>
#include <itemmodifyjob.h>
#include <akonadi/kmime/messageflags.h>
#include <KDebug>
using namespace MailTransport;
......
......@@ -19,9 +19,9 @@
#include "storeresultjob.h"
#include <Akonadi/Item>
#include <Akonadi/ItemFetchJob>
#include <Akonadi/ItemModifyJob>
#include <Item>
#include <ItemFetchJob>
#include <ItemModifyJob>
#include <akonadi/kmime/messageflags.h>
#include <KDebug>
#include <KLocalizedString>
......
......@@ -20,7 +20,7 @@
#ifndef STORERESULTJOB_H
#define STORERESULTJOB_H
#include <Akonadi/TransactionSequence>
#include <TransactionSequence>
#include <QtCore/QString>
......
......@@ -38,24 +38,30 @@ void Util::testJovieService()
if (!QDBusConnection::sessionBus().interface()->isServiceRegistered(QLatin1String("org.kde.kttsd"))) {
QString error;
if (KToolInvocation::startServiceByDesktopName(QLatin1String("kttsd"), QStringList(), &error)) {
//QT5
#if 0
KNotification::event( QLatin1String("text-to-speak-not-found"),
i18n("Starting Jovie Text-to-Speech Service Failed %1", error),
Util::defaultPixmap(),
0,
KNotification::CloseOnTimeout,
KGlobal::mainComponent());
#endif
}
}
}
void Util::showNotification(const QPixmap &pixmap, const QString &message)
{
//QT5
#if 0
KNotification::event( QLatin1String("new-email"),
message,
pixmap,
0,
KNotification::CloseOnTimeout,
KGlobal::mainComponent());
#endif
}
QPixmap Util::defaultPixmap()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment