Commit 068977b7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing Q_REQUIRED_RESULT

parent 63e8bb40
......@@ -41,7 +41,7 @@ class CryptoPagePlugin : public ContactEditor::ContactEditorPagePlugin
public:
CryptoPagePlugin();
~CryptoPagePlugin() override;
QString title() const override;
Q_REQUIRED_RESULT QString title() const override;
void loadContact(const KContacts::Addressee &contact) override;
void storeContact(KContacts::Addressee &contact) const override;
void setReadOnly(bool readOnly) override;
......
......@@ -31,7 +31,7 @@ public:
~CSVImportExportPlugin() override;
PimCommon::AbstractGenericPluginInterface *createInterface(QObject *parent) override;
bool hasPopupMenuSupport() const override;
Q_REQUIRED_RESULT bool hasPopupMenuSupport() const override;
};
#endif // CSVIMPORTEXPORTPLUGIN_H
......@@ -33,7 +33,7 @@ public:
void createAction(KActionCollection *ac) override;
void exec() override;
bool canImportFileType(const QUrl &url) override;
Q_REQUIRED_RESULT bool canImportFileType(const QUrl &url) override;
void importFile(const QUrl &url) override;
private:
......
......@@ -31,7 +31,7 @@ public:
~GMXImportExportPlugin() override;
PimCommon::AbstractGenericPluginInterface *createInterface(QObject *parent) override;
bool hasPopupMenuSupport() const override;
Q_REQUIRED_RESULT bool hasPopupMenuSupport() const override;
};
#endif // GMXIMPORTEXPORTPLUGIN_H
......@@ -33,7 +33,7 @@ public:
void createAction(KActionCollection *ac) override;
void exec() override;
bool canImportFileType(const QUrl &url) override;
Q_REQUIRED_RESULT bool canImportFileType(const QUrl &url) override;
private:
void doExport(QFile *fp, const KContacts::AddresseeList &list) const;
void slotImportGmx();
......
......@@ -31,7 +31,7 @@ public:
~LDapImportExportPlugin() override;
PimCommon::AbstractGenericPluginInterface *createInterface(QObject *parent) override;
bool hasPopupMenuSupport() const override;
Q_REQUIRED_RESULT bool hasPopupMenuSupport() const override;
};
#endif // LDAPIMPORTEXPORTPLUGIN_H
......@@ -31,7 +31,7 @@ public:
~LDifImportExportPlugin() override;
PimCommon::AbstractGenericPluginInterface *createInterface(QObject *parent) override;
bool hasPopupMenuSupport() const override;
Q_REQUIRED_RESULT bool hasPopupMenuSupport() const override;
};
#endif // LDIFIMPORTEXPORTPLUGIN_H
......@@ -30,7 +30,7 @@ public:
void createAction(KActionCollection *ac) override;
void exec() override;
bool canImportFileType(const QUrl &url) override;
Q_REQUIRED_RESULT bool canImportFileType(const QUrl &url) override;
void importFile(const QUrl &url) override;
private:
void slotImportLdif();
......
......@@ -31,7 +31,7 @@ public:
~VCardImportExportPlugin() override;
PimCommon::AbstractGenericPluginInterface *createInterface(QObject *parent) override;
bool hasPopupMenuSupport() const override;
Q_REQUIRED_RESULT bool hasPopupMenuSupport() const override;
};
#endif // VCARDIMPORTEXPORTPLUGIN_H
......@@ -32,7 +32,7 @@ public:
void createAction(KActionCollection *ac) override;
void exec() override;
bool canImportFileType(const QUrl &url) override;
Q_REQUIRED_RESULT bool canImportFileType(const QUrl &url) override;
private:
enum ExportVCardType {
VCard2_1 = 0,
......@@ -48,9 +48,9 @@ private:
void slotImportVCard();
void slotExportVCard4();
void slotExportVCard3();
QString contactFileName(const KContacts::Addressee &contact) const;
Q_REQUIRED_RESULT QString contactFileName(const KContacts::Addressee &contact) const;
void slotExportVCard2();
bool doExport(const QUrl &url, const QByteArray &data) const;
Q_REQUIRED_RESULT bool doExport(const QUrl &url, const QByteArray &data) const;
ExportVCardType mExportVCardType;
};
......
......@@ -35,7 +35,7 @@ public:
PimCommon::GenericPluginInterface *createInterface(QObject *parent = nullptr) override;
bool hasPopupMenuSupport() const override;
Q_REQUIRED_RESULT bool hasPopupMenuSupport() const override;
};
#endif // CHECKGRAVATARPLUGIN_H
......@@ -31,7 +31,7 @@ public:
void exec() override;
void createAction(KActionCollection *ac) override;
void setCurrentItems(const Akonadi::Item::List &items) override;
PimCommon::GenericPluginInterface::RequireTypes requires() const override;
Q_REQUIRED_RESULT PimCommon::GenericPluginInterface::RequireTypes requires() const override;
void updateActions(int numberOfSelectedItems, int numberOfSelectedCollections) override;
private:
......
......@@ -31,7 +31,7 @@ public:
void exec() override;
void createAction(KActionCollection *ac) override;
void setCurrentItems(const Akonadi::Item::List &items) override;
PimCommon::GenericPluginInterface::RequireTypes requires() const override;
Q_REQUIRED_RESULT PimCommon::GenericPluginInterface::RequireTypes requires() const override;
private:
void slotActivated();
......
......@@ -56,9 +56,9 @@ public:
Q_ENUMS(ConflictInformation)
Q_DECLARE_FLAGS(ConflictInformations, ConflictInformation)
KContacts::Addressee mergedContact(bool excludeConflictPart = false);
Q_REQUIRED_RESULT KContacts::Addressee mergedContact(bool excludeConflictPart = false);
MergeContacts::ConflictInformations requiresManualSelectionOfInformation();
Q_REQUIRED_RESULT MergeContacts::ConflictInformations requiresManualSelectionOfInformation();
void setItems(const Akonadi::Item::List &items);
private:
......
......@@ -37,7 +37,7 @@ MergeContactsJob::~MergeContactsJob()
{
}
bool MergeContactsJob::canStart()
bool MergeContactsJob::canStart() const
{
if (!mCollection.isValid()) {
qCDebug(KADDRESSBOOKMERGELIBPRIVATE_LOG) << " mCollection is not valid !";
......
......@@ -38,7 +38,7 @@ public:
void setDestination(const Akonadi::Collection &collection);
bool canStart();
Q_REQUIRED_RESULT bool canStart() const;
void setNewContact(const KContacts::Addressee &addr);
......
......@@ -33,7 +33,7 @@ public:
void start();
QVector<Akonadi::Item::List> potentialDuplicateContacts() const;
Q_REQUIRED_RESULT QVector<Akonadi::Item::List> potentialDuplicateContacts() const;
Q_SIGNALS:
void finished(const QVector<Akonadi::Item::List> &);
......
......@@ -29,7 +29,7 @@ class MergeContactWidgetListItem : public QListWidgetItem
{
public:
MergeContactWidgetListItem(const Akonadi::Item &item, QListWidget *parent = nullptr);
Akonadi::Item item() const;
Q_REQUIRED_RESULT Akonadi::Item item() const;
private:
Akonadi::Item mItem;
......
......@@ -35,7 +35,7 @@ public:
void updateTabWidget();
bool tabBarVisible() const;
Q_REQUIRED_RESULT bool tabBarVisible() const;
void setRequiresSelectInformationWidgets(const QVector<KABMergeContacts::MergeConflictResult> &list, const Akonadi::Collection &col);
private:
......
......@@ -33,12 +33,12 @@ public:
explicit ResultDuplicateTreeWidgetItem(QTreeWidget *parent = nullptr);
~ResultDuplicateTreeWidgetItem();
Akonadi::Item item() const;
Q_REQUIRED_RESULT Akonadi::Item item() const;
void setItem(const Akonadi::Item &item);
private:
void setDisplayName();
QString contactName(const KContacts::Addressee &address);
Q_REQUIRED_RESULT QString contactName(const KContacts::Addressee &address);
Akonadi::Item mItem;
};
......@@ -50,7 +50,7 @@ public:
~ResultDuplicateTreeWidget();
void setContacts(const QVector<Akonadi::Item::List> &lstItem);
QVector<Akonadi::Item::List> selectedContactsToMerge() const;
Q_REQUIRED_RESULT QVector<Akonadi::Item::List> selectedContactsToMerge() const;
Q_SIGNALS:
void showContactPreview(const Akonadi::Item &item);
......
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