Commit e3d9faf4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: coding style

parent f6abc6a8
......@@ -40,8 +40,7 @@ EwsItemHandler *EwsAbchPersonHandler::factory()
return new EwsAbchPersonHandler();
}
EwsFetchItemDetailJob *EwsAbchPersonHandler::fetchItemDetailJob(EwsClient &client, QObject *parent,
const Akonadi::Collection &collection)
EwsFetchItemDetailJob *EwsAbchPersonHandler::fetchItemDetailJob(EwsClient &client, QObject *parent, const Akonadi::Collection &collection)
{
return new EwsFetchAbchContactDetailsJob(client, parent, collection);
}
......@@ -65,15 +64,12 @@ bool EwsAbchPersonHandler::setItemPayload(Akonadi::Item &item, const EwsItem &ew
return true;
}
EwsModifyItemJob *EwsAbchPersonHandler::modifyItemJob(EwsClient &client, const QVector<Akonadi::Item> &items,
const QSet<QByteArray> &parts, QObject *parent)
EwsModifyItemJob *EwsAbchPersonHandler::modifyItemJob(EwsClient &client, const QVector<Akonadi::Item> &items, const QSet<QByteArray> &parts, QObject *parent)
{
return new EwsModifyAbchPersonJob(client, items, parts, parent);
}
EwsCreateItemJob *EwsAbchPersonHandler::createItemJob(EwsClient &client, const Akonadi::Item &item,
const Akonadi::Collection &collection,
EwsTagStore *tagStore, EwsResource *parent)
EwsCreateItemJob *EwsAbchPersonHandler::createItemJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent)
{
return new EwsCreateAbchPersonJob(client, item, collection, tagStore, parent);
}
......
......@@ -28,16 +28,12 @@ public:
EwsAbchPersonHandler();
~EwsAbchPersonHandler() override;
EwsFetchItemDetailJob *fetchItemDetailJob(EwsClient &client, QObject *parent,
const Akonadi::Collection &collection) override;
EwsFetchItemDetailJob *fetchItemDetailJob(EwsClient &client, QObject *parent, const Akonadi::Collection &collection) override;
void setSeenFlag(Akonadi::Item &item, bool value) override;
QString mimeType() override;
bool setItemPayload(Akonadi::Item &item, const EwsItem &ewsItem) override;
EwsModifyItemJob *modifyItemJob(EwsClient &client, const QVector<Akonadi::Item> &items,
const QSet<QByteArray> &parts, QObject *parent) override;
EwsCreateItemJob *createItemJob(EwsClient &client, const Akonadi::Item &item,
const Akonadi::Collection &collection,
EwsTagStore *tagStore, EwsResource *parent) override;
EwsModifyItemJob *modifyItemJob(EwsClient &client, const QVector<Akonadi::Item> &items, const QSet<QByteArray> &parts, QObject *parent) override;
EwsCreateItemJob *createItemJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent) override;
static EwsItemHandler *factory();
};
......
......@@ -21,12 +21,11 @@
#include "ewsresource_debug.h"
EwsCreateAbchPersonJob::EwsCreateAbchPersonJob(EwsClient &client, const Akonadi::Item &item,
const Akonadi::Collection &collection, EwsTagStore *tagStore,
EwsResource *parent)
EwsCreateAbchPersonJob::EwsCreateAbchPersonJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent)
: EwsCreateItemJob(client, item, collection, tagStore, parent)
{
}
EwsCreateAbchPersonJob::~EwsCreateAbchPersonJob()
{
}
......
......@@ -26,8 +26,7 @@ class EwsCreateAbchPersonJob : public EwsCreateItemJob
{
Q_OBJECT
public:
EwsCreateAbchPersonJob(EwsClient &client, const Akonadi::Item &item,
const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent);
EwsCreateAbchPersonJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent);
~EwsCreateAbchPersonJob() override;
bool setSend(bool send = true) override;
protected:
......
......@@ -33,7 +33,6 @@ EwsFetchAbchContactDetailsJob::EwsFetchAbchContactDetailsJob(EwsClient &client,
mRequest->setItemShape(shape);
}
EwsFetchAbchContactDetailsJob::~EwsFetchAbchContactDetailsJob()
{
}
......@@ -59,4 +58,3 @@ void EwsFetchAbchContactDetailsJob::processItems(const QList<EwsGetItemRequest::
emitResult();
}
......@@ -21,11 +21,11 @@
#include "ewsresource_debug.h"
EwsModifyAbchPersonJob::EwsModifyAbchPersonJob(EwsClient &client, const Akonadi::Item::List &items,
const QSet<QByteArray> &parts, QObject *parent)
EwsModifyAbchPersonJob::EwsModifyAbchPersonJob(EwsClient &client, const Akonadi::Item::List &items, const QSet<QByteArray> &parts, QObject *parent)
: EwsModifyItemJob(client, items, parts, parent)
{
}
EwsModifyAbchPersonJob::~EwsModifyAbchPersonJob()
{
}
......
......@@ -26,8 +26,7 @@ class EwsModifyAbchPersonJob : public EwsModifyItemJob
{
Q_OBJECT
public:
EwsModifyAbchPersonJob(EwsClient &client, const Akonadi::Item::List &items, const QSet<QByteArray> &parts,
QObject *parent);
EwsModifyAbchPersonJob(EwsClient &client, const Akonadi::Item::List &items, const QSet<QByteArray> &parts, QObject *parent);
~EwsModifyAbchPersonJob() override;
void start() override;
};
......
......@@ -40,8 +40,7 @@ EwsItemHandler *EwsCalendarHandler::factory()
return new EwsCalendarHandler();
}
EwsFetchItemDetailJob *EwsCalendarHandler::fetchItemDetailJob(EwsClient &client, QObject *parent,
const Akonadi::Collection &collection)
EwsFetchItemDetailJob *EwsCalendarHandler::fetchItemDetailJob(EwsClient &client, QObject *parent, const Akonadi::Collection &collection)
{
return new EwsFetchCalendarDetailJob(client, parent, collection);
}
......@@ -65,15 +64,12 @@ bool EwsCalendarHandler::setItemPayload(Akonadi::Item &item, const EwsItem &ewsI
return true;
}
EwsModifyItemJob *EwsCalendarHandler::modifyItemJob(EwsClient &client, const QVector<Akonadi::Item> &items,
const QSet<QByteArray> &parts, QObject *parent)
EwsModifyItemJob *EwsCalendarHandler::modifyItemJob(EwsClient &client, const QVector<Akonadi::Item> &items, const QSet<QByteArray> &parts, QObject *parent)
{
return new EwsModifyCalendarJob(client, items, parts, parent);
}
EwsCreateItemJob *EwsCalendarHandler::createItemJob(EwsClient &client, const Akonadi::Item &item,
const Akonadi::Collection &collection,
EwsTagStore *tagStore, EwsResource *parent)
EwsCreateItemJob *EwsCalendarHandler::createItemJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent)
{
return new EwsCreateCalendarJob(client, item, collection, tagStore, parent);
}
......
......@@ -28,16 +28,12 @@ public:
EwsCalendarHandler();
~EwsCalendarHandler() override;
EwsFetchItemDetailJob *fetchItemDetailJob(EwsClient &client, QObject *parent,
const Akonadi::Collection &collection) override;
EwsFetchItemDetailJob *fetchItemDetailJob(EwsClient &client, QObject *parent, const Akonadi::Collection &collection) override;
void setSeenFlag(Akonadi::Item &item, bool value) override;
QString mimeType() override;
bool setItemPayload(Akonadi::Item &item, const EwsItem &ewsItem) override;
EwsModifyItemJob *modifyItemJob(EwsClient &client, const QVector<Akonadi::Item> &items,
const QSet<QByteArray> &parts, QObject *parent) override;
EwsCreateItemJob *createItemJob(EwsClient &client, const Akonadi::Item &item,
const Akonadi::Collection &collection,
EwsTagStore *tagStore, EwsResource *parent) override;
EwsModifyItemJob *modifyItemJob(EwsClient &client, const QVector<Akonadi::Item> &items, const QSet<QByteArray> &parts, QObject *parent) override;
EwsCreateItemJob *createItemJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent) override;
static EwsItemHandler *factory();
};
......
......@@ -21,12 +21,11 @@
#include "ewsresource_debug.h"
EwsCreateCalendarJob::EwsCreateCalendarJob(EwsClient &client, const Akonadi::Item &item,
const Akonadi::Collection &collection,
EwsTagStore *tagStore, EwsResource *parent)
EwsCreateCalendarJob::EwsCreateCalendarJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent)
: EwsCreateItemJob(client, item, collection, tagStore, parent)
{
}
EwsCreateCalendarJob::~EwsCreateCalendarJob()
{
}
......
......@@ -26,8 +26,7 @@ class EwsCreateCalendarJob : public EwsCreateItemJob
{
Q_OBJECT
public:
EwsCreateCalendarJob(EwsClient &client, const Akonadi::Item &item,
const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent);
EwsCreateCalendarJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent);
~EwsCreateCalendarJob() override;
bool setSend(bool send = true) override;
protected:
......
......@@ -33,8 +33,7 @@
using namespace Akonadi;
EwsFetchCalendarDetailJob::EwsFetchCalendarDetailJob(EwsClient &client, QObject *parent,
const Collection &collection)
EwsFetchCalendarDetailJob::EwsFetchCalendarDetailJob(EwsClient &client, QObject *parent, const Collection &collection)
: EwsFetchItemDetailJob(client, parent, collection)
{
EwsItemShape shape(EwsShapeIdOnly);
......@@ -73,7 +72,6 @@ EwsFetchCalendarDetailJob::EwsFetchCalendarDetailJob(EwsClient &client, QObject
mRequest->setItemShape(shape);
}
EwsFetchCalendarDetailJob::~EwsFetchCalendarDetailJob()
{
}
......@@ -121,7 +119,7 @@ void EwsFetchCalendarDetailJob::processItems(const QList<EwsGetItemRequest::Resp
incidence->setDtStart(dt);
}
if (incidence->type() == KCalCore::Incidence::TypeEvent) {
KCalCore::Event *event = reinterpret_cast<KCalCore::Event*>(incidence.data());
KCalCore::Event *event = reinterpret_cast<KCalCore::Event *>(incidence.data());
dt = event->dtEnd();
if (dt.isValid()) {
event->setDtEnd(dt);
......@@ -165,7 +163,7 @@ void EwsFetchCalendarDetailJob::exceptionItemsFetched(KJob *job)
return;
}
EwsGetItemRequest *req = qobject_cast<EwsGetItemRequest*>(job);
EwsGetItemRequest *req = qobject_cast<EwsGetItemRequest *>(job);
if (!req) {
setError(1);
......@@ -199,7 +197,7 @@ void EwsFetchCalendarDetailJob::exceptionItemsFetched(KJob *job)
incidence->setDtStart(dt);
}
if (incidence->type() == KCalCore::Incidence::TypeEvent) {
KCalCore::Event *event = reinterpret_cast<KCalCore::Event*>(incidence.data());
KCalCore::Event *event = reinterpret_cast<KCalCore::Event *>(incidence.data());
dt = event->dtEnd();
if (dt.isValid()) {
event->setDtEnd(dt);
......
......@@ -21,11 +21,11 @@
#include "ewsresource_debug.h"
EwsModifyCalendarJob::EwsModifyCalendarJob(EwsClient &client, const Akonadi::Item::List &items,
const QSet<QByteArray> &parts, QObject *parent)
EwsModifyCalendarJob::EwsModifyCalendarJob(EwsClient &client, const Akonadi::Item::List &items, const QSet<QByteArray> &parts, QObject *parent)
: EwsModifyItemJob(client, items, parts, parent)
{
}
EwsModifyCalendarJob::~EwsModifyCalendarJob()
{
}
......
......@@ -26,8 +26,7 @@ class EwsModifyCalendarJob : public EwsModifyItemJob
{
Q_OBJECT
public:
EwsModifyCalendarJob(EwsClient &client, const Akonadi::Item::List &items, const QSet<QByteArray> &parts,
QObject *parent);
EwsModifyCalendarJob(EwsClient &client, const Akonadi::Item::List &items, const QSet<QByteArray> &parts, QObject *parent);
~EwsModifyCalendarJob() override;
void start() override;
};
......
......@@ -41,8 +41,7 @@ EwsItemHandler *EwsContactHandler::factory()
return new EwsContactHandler();
}
EwsFetchItemDetailJob *EwsContactHandler::fetchItemDetailJob(EwsClient &client, QObject *parent,
const Akonadi::Collection &collection)
EwsFetchItemDetailJob *EwsContactHandler::fetchItemDetailJob(EwsClient &client, QObject *parent, const Akonadi::Collection &collection)
{
return new EwsFetchContactDetailJob(client, parent, collection);
}
......@@ -66,15 +65,12 @@ bool EwsContactHandler::setItemPayload(Akonadi::Item &item, const EwsItem &ewsIt
return true;
}
EwsModifyItemJob *EwsContactHandler::modifyItemJob(EwsClient &client, const QVector<Akonadi::Item> &items,
const QSet<QByteArray> &parts, QObject *parent)
EwsModifyItemJob *EwsContactHandler::modifyItemJob(EwsClient &client, const QVector<Akonadi::Item> &items, const QSet<QByteArray> &parts, QObject *parent)
{
return new EwsModifyContactJob(client, items, parts, parent);
}
EwsCreateItemJob *EwsContactHandler::createItemJob(EwsClient &client, const Akonadi::Item &item,
const Akonadi::Collection &collection,
EwsTagStore *tagStore, EwsResource *parent)
EwsCreateItemJob *EwsContactHandler::createItemJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent)
{
return new EwsCreateContactJob(client, item, collection, tagStore, parent);
}
......
......@@ -28,16 +28,12 @@ public:
EwsContactHandler();
~EwsContactHandler() override;
EwsFetchItemDetailJob *fetchItemDetailJob(EwsClient &client, QObject *parent,
const Akonadi::Collection &collection) override;
EwsFetchItemDetailJob *fetchItemDetailJob(EwsClient &client, QObject *parent, const Akonadi::Collection &collection) override;
void setSeenFlag(Akonadi::Item &item, bool value) override;
QString mimeType() override;
bool setItemPayload(Akonadi::Item &item, const EwsItem &ewsItem) override;
EwsModifyItemJob *modifyItemJob(EwsClient &client, const QVector<Akonadi::Item> &items,
const QSet<QByteArray> &parts, QObject *parent) override;
EwsCreateItemJob *createItemJob(EwsClient &client, const Akonadi::Item &item,
const Akonadi::Collection &collection,
EwsTagStore *tagStore, EwsResource *parent) override;
EwsModifyItemJob *modifyItemJob(EwsClient &client, const QVector<Akonadi::Item> &items, const QSet<QByteArray> &parts, QObject *parent) override;
EwsCreateItemJob *createItemJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent) override;
static EwsItemHandler *factory();
};
......
......@@ -21,12 +21,11 @@
#include "ewsresource_debug.h"
EwsCreateContactJob::EwsCreateContactJob(EwsClient &client, const Akonadi::Item &item,
const Akonadi::Collection &collection,
EwsTagStore *tagStore, EwsResource *parent)
EwsCreateContactJob::EwsCreateContactJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent)
: EwsCreateItemJob(client, item, collection, tagStore, parent)
{
}
EwsCreateContactJob::~EwsCreateContactJob()
{
}
......
......@@ -26,8 +26,7 @@ class EwsCreateContactJob : public EwsCreateItemJob
{
Q_OBJECT
public:
EwsCreateContactJob(EwsClient &client, const Akonadi::Item &item,
const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent);
EwsCreateContactJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent);
~EwsCreateContactJob() override;
bool setSend(bool send = true) override;
protected:
......
......@@ -32,7 +32,6 @@ EwsFetchContactDetailJob::EwsFetchContactDetailJob(EwsClient &client, QObject *p
mRequest->setItemShape(shape);
}
EwsFetchContactDetailJob::~EwsFetchContactDetailJob()
{
}
......
......@@ -21,11 +21,11 @@
#include "ewsresource_debug.h"
EwsModifyContactJob::EwsModifyContactJob(EwsClient &client, const Akonadi::Item::List &items,
const QSet<QByteArray> &parts, QObject *parent)
EwsModifyContactJob::EwsModifyContactJob(EwsClient &client, const Akonadi::Item::List &items, const QSet<QByteArray> &parts, QObject *parent)
: EwsModifyItemJob(client, items, parts, parent)
{
}
EwsModifyContactJob::~EwsModifyContactJob()
{
}
......
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