Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 1ecee6cd authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DISABLE_COPY

parent 3303ebcb
......@@ -47,6 +47,7 @@ public:
void setSettings(const CreateForwardMessageJobSettings &value);
private:
Q_DISABLE_COPY(CreateForwardMessageJob)
MessageComposer::MessageFactoryNG *mMessageFactory = nullptr;
void slotCreateForwardDone(const KMime::Message::Ptr &msg);
CreateForwardMessageJobSettings mSettings;
......
......@@ -53,6 +53,7 @@ public:
void setSettings(const CreateReplyMessageJobSettings &settings);
private:
Q_DISABLE_COPY(CreateReplyMessageJob)
MessageComposer::MessageFactoryNG *mMessageFactory = nullptr;
void slotCreateReplyDone(const MessageComposer::MessageFactoryNG::MessageReply &reply);
CreateReplyMessageJobSettings mSettings;
......
......@@ -84,6 +84,7 @@ public:
void setSettings(const FillComposerJobSettings &settings);
private:
Q_DISABLE_COPY(FillComposerJob)
void slotOpenComposer();
FillComposerJobSettings mSettings;
KMime::Message::Ptr mMsg;
......
......@@ -37,6 +37,7 @@ public:
void setFolder(const QSharedPointer<MailCommon::FolderSettings> &folder);
void setCurrentCollection(const Akonadi::Collection &currentCollection);
private:
Q_DISABLE_COPY(HandleClickedUrlJob)
void slotOpenComposer();
QUrl mUrl;
Akonadi::Collection mCurrentCollection;
......
......@@ -37,6 +37,7 @@ public:
void start();
private:
Q_DISABLE_COPY(MarkAllMessagesAsReadInFolderAndSubFolderJob)
void slotFetchCollectionFailed();
void slotFetchCollectionDone(const Akonadi::Collection::List &list);
void slotMarkAsResult(Akonadi::MarkAsCommand::Result result);
......
......@@ -63,6 +63,7 @@ public:
void setNewMessageJobSettings(const NewMessageJobSettings &newMessageJobSettings);
private:
Q_DISABLE_COPY(NewMessageJob)
void slotOpenComposer();
NewMessageJobSettings mNewMessageJobSettings;
Akonadi::Collection mCollection;
......
......@@ -57,6 +57,7 @@ public:
void setSettings(const OpenComposerHiddenJobSettings &settings);
private:
Q_DISABLE_COPY(OpenComposerHiddenJob)
void slotOpenComposer();
OpenComposerHiddenJobSettings mSettings;
KMime::Message::Ptr mMsg;
......
......@@ -72,6 +72,7 @@ public:
void setOpenComposerSettings(const OpenComposerSettings &openComposerSettings);
private:
Q_DISABLE_COPY(OpenComposerJob)
void slotOpenComposer();
OpenComposerSettings mOpenComposerSettings;
KMime::Message::Ptr mMsg;
......
......@@ -41,6 +41,7 @@ Q_SIGNALS:
void clearCurrentFolder();
private:
Q_DISABLE_COPY(RemoveCollectionJob)
void slotDelayedRemoveFolder(KJob *job);
void slotDeletionCollectionResult(KJob *job);
......
......@@ -37,6 +37,7 @@ public:
void start();
private:
Q_DISABLE_COPY(RemoveDuplicateMailJob)
void slotRemoveDuplicatesDone(KJob *job);
void slotRemoveDuplicatesCanceled(KPIM::ProgressItem *item);
void slotRemoveDuplicatesUpdate(KJob *job, const QString &description);
......
......@@ -39,6 +39,7 @@ public:
void setTopLevelCollection(const Akonadi::Collection &topLevelCollection);
private:
Q_DISABLE_COPY(RemoveDuplicateMessageInFolderAndSubFolderJob)
void slotFetchCollectionFailed();
void slotFetchCollectionDone(const Akonadi::Collection::List &list);
void slotFinished(KJob *job);
......
......@@ -37,6 +37,7 @@ public:
void setParentWidget(QWidget *parentWidget);
private:
Q_DISABLE_COPY(SaveAsFileJob)
bool mHtmlMode = false;
QTextDocument *mTextDocument = nullptr;
QWidget *mParentWidget = nullptr;
......
......@@ -120,6 +120,7 @@ protected:
void setResult(Result result);
private:
Q_DISABLE_COPY(KMCommand)
// execute should be implemented by derived classes
virtual Result execute() = 0;
......
......@@ -40,6 +40,7 @@ public Q_SLOTS:
void slotAccountWizard();
void slotFilterLogViewer();
private:
Q_DISABLE_COPY(KMLaunchExternalComponent)
QString akonadiPath(QString service);
QWidget *mParentWidget = nullptr;
};
......
......@@ -45,6 +45,8 @@ public:
bool sendMessage(const QString &from, const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, const QStringList &attachments);
bool sendMessage(const QString &from, const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, const QByteArray &attachment);
private:
Q_DISABLE_COPY(MailServiceImpl)
};
}
......
......@@ -46,6 +46,7 @@ public Q_SLOTS:
void slotCollectionProperties();
private:
Q_DISABLE_COPY(ManageShowCollectionProperties)
void slotCollectionPropertiesContinued(KJob *job);
void slotCollectionPropertiesFinished(KJob *job);
void showCollectionProperties(const QString &pageToShow);
......
......@@ -104,6 +104,7 @@ public Q_SLOTS:
void editCurrentMessage();
private:
Q_DISABLE_COPY(MessageActions)
void annotateMessage();
void updateActions();
void replyCommand(MessageComposer::ReplyStrategy strategy);
......
......@@ -45,6 +45,7 @@ Q_SIGNALS:
void finished(Akonadi::Collection::Id id, bool needToReindex);
private:
Q_DISABLE_COPY(CheckIndexingJob)
void slotCollectionPropertiesFinished(KJob *job);
void askForNextCheck(quint64 id, bool needToReindex = false);
Akonadi::Collection mCollection;
......
......@@ -41,6 +41,7 @@ public:
void start(QAbstractItemModel *collectionModel);
private:
Q_DISABLE_COPY(CheckIndexingManager)
void checkNextCollection();
void indexingFinished(qint64 index, bool reindexCollection);
......
......@@ -100,6 +100,7 @@ Q_SIGNALS:
void tagMoreActionClicked();
private:
Q_DISABLE_COPY(TagActionManager)
void finishedTagListing(KJob *job);
void newTagActionClicked();
void onSignalMapped(const QString &tag);
......
......@@ -68,6 +68,7 @@ Q_SIGNALS:
void undoStackChanged();
private:
Q_DISABLE_COPY(UndoStack)
void slotMoveResult(KJob *);
QList<UndoInfo *> mStack;
int mSize = 0;
......
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