summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-03-12 20:57:15 +0100
committerLaurent Montel <[email protected]>2018-03-12 20:57:15 +0100
commiteda5e6993b32e008fc8b209082293ec4c4346e05 (patch)
tree52a8ef1ad7dee40ee17bdf4c12bd5ef5038b0267
parentf00086701277694e7d819b4fa229509b2503fb35 (diff)
Add some Q_DISABLE_COPY
-rw-r--r--agents/archivemailagent/archivemailkernel.h1
-rw-r--r--agents/mailfilteragent/dummykernel.h1
-rw-r--r--src/folderarchive/folderarchivecache.h1
-rw-r--r--src/folderarchive/folderarchivemanager.h1
-rw-r--r--src/foldershortcutactionmanager.h2
-rw-r--r--src/job/composenewmessagejob.h1
-rw-r--r--src/job/createfollowupreminderonexistingmessagejob.h1
-rw-r--r--src/unityservicemanager.h1
8 files changed, 9 insertions, 0 deletions
diff --git a/agents/archivemailagent/archivemailkernel.h b/agents/archivemailagent/archivemailkernel.h
index 2e024d2..a415140 100644
--- a/agents/archivemailagent/archivemailkernel.h
+++ b/agents/archivemailagent/archivemailkernel.h
@@ -56,6 +56,7 @@ public:
void expunge(Akonadi::Collection::Id col, bool sync) override;
private:
+ Q_DISABLE_COPY(ArchiveMailKernel)
KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor = nullptr;
Akonadi::EntityTreeModel *mEntityTreeModel = nullptr;
diff --git a/agents/mailfilteragent/dummykernel.h b/agents/mailfilteragent/dummykernel.h
index cf20a74..8ab1a44 100644
--- a/agents/mailfilteragent/dummykernel.h
+++ b/agents/mailfilteragent/dummykernel.h
@@ -36,6 +36,7 @@ public:
void expunge(Akonadi::Collection::Id id, bool sync) override;
private:
+ Q_DISABLE_COPY(DummyKernel)
KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
MessageComposer::MessageSender *mMessageSender = nullptr;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor = nullptr;
diff --git a/src/folderarchive/folderarchivecache.h b/src/folderarchive/folderarchivecache.h
index 11d3519..1b48035 100644
--- a/src/folderarchive/folderarchivecache.h
+++ b/src/folderarchive/folderarchivecache.h
@@ -47,6 +47,7 @@ public:
void clearCache();
private:
+ Q_DISABLE_COPY(FolderArchiveCache)
QHash<QString, ArchiveCache> mCache;
};
diff --git a/src/folderarchive/folderarchivemanager.h b/src/folderarchive/folderarchivemanager.h
index 3c54137..9d4a0fc 100644
--- a/src/folderarchive/folderarchivemanager.h
+++ b/src/folderarchive/folderarchivemanager.h
@@ -55,6 +55,7 @@ public Q_SLOTS:
void slotInstanceRemoved(const Akonadi::AgentInstance &instance);
private:
+ Q_DISABLE_COPY(FolderArchiveManager)
void slotFetchParentCollection(KJob *job);
void slotFetchCollection(KJob *job);
diff --git a/src/foldershortcutactionmanager.h b/src/foldershortcutactionmanager.h
index 35a8ce3..5b4e4c2 100644
--- a/src/foldershortcutactionmanager.h
+++ b/src/foldershortcutactionmanager.h
@@ -51,6 +51,7 @@ Q_SIGNALS:
void selectCollectionFolder(const Akonadi::Collection &col);
private:
+ Q_DISABLE_COPY(FolderShortcutCommand)
Akonadi::Collection mCollectionFolder;
QWidget *mMainWidget = nullptr;
QAction *mAction = nullptr;
@@ -81,6 +82,7 @@ private:
void slotRowsInserted(const QModelIndex &parent, int start, int end);
private:
+ Q_DISABLE_COPY(FolderShortcutActionManager)
void updateShortcutsForIndex(const QModelIndex &parent, int start, int end);
QHash< Akonadi::Collection::Id, FolderShortcutCommand * > mFolderShortcutCommands;
KActionCollection *mActionCollection = nullptr;
diff --git a/src/job/composenewmessagejob.h b/src/job/composenewmessagejob.h
index d45edcf..f633c26 100644
--- a/src/job/composenewmessagejob.h
+++ b/src/job/composenewmessagejob.h
@@ -35,6 +35,7 @@ public:
void setCurrentCollection(const Akonadi::Collection &col);
private:
+ Q_DISABLE_COPY(ComposeNewMessageJob)
void slotOpenComposer(bool forceCursorPosition);
QSharedPointer<MailCommon::FolderSettings> mFolder;
Akonadi::Collection mCurrentCollection;
diff --git a/src/job/createfollowupreminderonexistingmessagejob.h b/src/job/createfollowupreminderonexistingmessagejob.h
index b643496..a20d7b9 100644
--- a/src/job/createfollowupreminderonexistingmessagejob.h
+++ b/src/job/createfollowupreminderonexistingmessagejob.h
@@ -46,6 +46,7 @@ public:
bool canStart() const;
private:
+ Q_DISABLE_COPY(CreateFollowupReminderOnExistingMessageJob)
void itemFetchJobDone(KJob *job);
void slotReminderDone(KJob *job);
diff --git a/src/unityservicemanager.h b/src/unityservicemanager.h
index 04d222f..a1f569d 100644
--- a/src/unityservicemanager.h
+++ b/src/unityservicemanager.h
@@ -49,6 +49,7 @@ public:
bool excludeFolder(const Akonadi::Collection &collection) const;
bool ignoreNewMailInFolder(const Akonadi::Collection &collection);
private:
+ Q_DISABLE_COPY(UnityServiceManager)
void unreadMail(const QAbstractItemModel *model, const QModelIndex &parentIndex = {});
void slotCollectionStatisticsChanged(Akonadi::Collection::Id id, const Akonadi::CollectionStatistics &);
void updateCount();