Commit cd2d412d authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent a7bfc121
......@@ -37,8 +37,6 @@ using namespace PimCommon;
AclModifyJob::AclModifyJob(QObject *parent)
: QObject(parent)
, mRecursive(false)
, mCurrentIndex(-1)
{
}
......@@ -120,7 +118,7 @@ void AclModifyJob::changeAcl(Akonadi::Collection collection)
if (canAdministrate(attribute, collection)) {
attribute->setRights(mNewRight);
Akonadi::CollectionModifyJob *modifyJob = new Akonadi::CollectionModifyJob(collection);
connect(modifyJob, SIGNAL(result(KJob*)), this, SLOT(slotModifyDone(KJob*)));
connect(modifyJob, &KJob::result, this, &AclModifyJob::slotModifyDone);
}
} else {
checkNewCollection();
......
......@@ -38,20 +38,18 @@ public:
void setNewRights(const QMap<QByteArray, KIMAP::Acl::Rights> &right);
void start();
private Q_SLOTS:
private:
void slotModifyDone(KJob *job);
void slotFetchCollectionFinished(const Akonadi::Collection::List &collectionList);
void slotFetchCollectionFailed();
private:
void changeAcl(Akonadi::Collection collection);
void checkNewCollection();
bool canAdministrate(PimCommon::ImapAclAttribute *attribute, const Akonadi::Collection &collection) const;
Akonadi::Collection mTopLevelCollection;
Akonadi::Collection::List mRecursiveCollection;
QMap<QByteArray, KIMAP::Acl::Rights> mNewRight;
bool mRecursive;
int mCurrentIndex;
bool mRecursive = false;
int mCurrentIndex = -1;
};
}
#endif // ACLMODIFYJOB_H
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