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

Add missing Q_REQUIRED_RESULT

parent c66da4de
Pipeline #23832 passed with stage
in 17 minutes and 2 seconds
......@@ -52,35 +52,35 @@ public:
void akonadiHandlePending();
void doCompletion(bool ctrlT);
bool showOU() const;
Q_REQUIRED_RESULT bool showOU() const;
void setIcon(const QIcon &icon, const QString &tooltip);
bool useCompletion() const;
Q_REQUIRED_RESULT bool useCompletion() const;
void setUseCompletion(bool useCompletion);
bool completionInitialized() const;
Q_REQUIRED_RESULT bool completionInitialized() const;
bool smartPaste() const;
Q_REQUIRED_RESULT bool smartPaste() const;
void setSmartPaste(bool smartPaste);
bool searchExtended() const;
Q_REQUIRED_RESULT bool searchExtended() const;
void setSearchExtended(bool searchExtended);
QString searchString() const;
Q_REQUIRED_RESULT QString searchString() const;
void setSearchString(const QString &searchString);
bool enableBalooSearch() const;
Q_REQUIRED_RESULT bool enableBalooSearch() const;
void setEnableBalooSearch(bool enableBalooSearch);
bool useSemicolonAsSeparator() const;
Q_REQUIRED_RESULT bool useSemicolonAsSeparator() const;
void setUseSemicolonAsSeparator(bool useSemicolonAsSeparator);
bool enableAkonadiSearch() const;
Q_REQUIRED_RESULT bool enableAkonadiSearch() const;
void setEnableAkonadiSearch(bool enableAkonadiSearch);
void removeCompletionSource(const QString &source);
int addCompletionSource(const QString &source, int weight);
Q_REQUIRED_RESULT int addCompletionSource(const QString &source, int weight);
void restartTime(const QString &searchString);
void updateBalooBlackList();
void updateCompletionOrder();
......@@ -88,15 +88,15 @@ public:
KLDAP::LdapClientSearch *ldapSearch();
void setExpandIntern(bool);
bool expandIntern() const;
Q_REQUIRED_RESULT bool expandIntern() const;
bool autoGroupExpand() const;
Q_REQUIRED_RESULT bool autoGroupExpand() const;
void setAutoGroupExpand(bool autoGroupExpand);
QList<KJob *> mightBeGroupJobs() const;
void setMightBeGroupJobs(const QList<KJob *> &mightBeGroupJobs);
KContacts::ContactGroup::List groups() const;
Q_REQUIRED_RESULT KContacts::ContactGroup::List groups() const;
void setGroups(const KContacts::ContactGroup::List &groups);
void mightBeGroupJobsClear();
......@@ -104,14 +104,14 @@ public:
void addGroups(const KContacts::ContactGroup::List &lst);
void mightBeGroupJobsRemoveOne(Akonadi::ContactGroupSearchJob *search);
void mightBeGroupJobsAdd(Akonadi::ContactGroupSearchJob *job);
bool groupsIsEmpty() const;
Q_REQUIRED_RESULT bool groupsIsEmpty() const;
void setShowRecentAddresses(bool b);
bool showRecentAddresses() const;
Q_REQUIRED_RESULT bool showRecentAddresses() const;
void setRecentAddressConfig(KConfig *config);
KConfig *recentAddressConfig() const;
bool canDeleteLineEdit() const;
Q_REQUIRED_RESULT bool canDeleteLineEdit() const;
void setCanDeleteLineEdit(bool inprogressToConfigureCompletion);
public Q_SLOTS:
......
......@@ -29,14 +29,14 @@ public:
AddresseeLineEditBaloo();
~AddresseeLineEditBaloo();
int balooCompletionSource() const;
Q_REQUIRED_RESULT int balooCompletionSource() const;
void setBalooCompletionSource(int value);
QStringList balooBlackList() const;
QStringList domainExcludeList() const;
Q_REQUIRED_RESULT QStringList balooBlackList() const;
Q_REQUIRED_RESULT QStringList domainExcludeList() const;
void loadBalooBlackList();
QStringList cleanupEmailList(const QStringList &inputList);
Q_REQUIRED_RESULT QStringList cleanupEmailList(const QStringList &inputList);
private:
QStringList mBalooBlackList;
QStringList mDomainExcludeList;
......
......@@ -47,7 +47,7 @@ public:
KLDAP::LdapClientSearch *ldapSearch() const;
QTimer *ldapTimer() const;
QString ldapText() const;
Q_REQUIRED_RESULT QString ldapText() const;
void setLdapText(const QString &ldapText);
AddresseeLineEdit *addressLineEdit() const;
......
......@@ -89,7 +89,7 @@ public:
//Ldap
void initializeLdap();
QString ldapText() const;
Q_REQUIRED_RESULT QString ldapText() const;
void setLdapText(const QString &ldapText);
KLDAP::LdapClientSearch *ldapSearch() const;
QTimer *ldapTimer() const;
......@@ -100,7 +100,7 @@ public:
void restartLdap(const QString &searchString, AddresseeLineEdit *addressLine);
//Baloo
int balooCompletionSource() const;
Q_REQUIRED_RESULT int balooCompletionSource() const;
void setBalooCompletionSource(int value);
//Akonadi
......@@ -110,19 +110,19 @@ public:
AddresseeLineEdit *addressLineEdit() const;
void setAddressLineEdit(AddresseeLineEdit *addressLineEdit);
bool isOnline() const;
Q_REQUIRED_RESULT bool isOnline() const;
void loadBalooBlackList();
QStringList cleanupEmailList(const QStringList &inputList);
QStringList balooBlackList() const;
Q_REQUIRED_RESULT QStringList cleanupEmailList(const QStringList &inputList);
Q_REQUIRED_RESULT QStringList balooBlackList() const;
bool showOU() const;
Q_REQUIRED_RESULT bool showOU() const;
void setShowOU(bool showOU);
bool autoGroupExpand() const;
void setAutoGroupExpand(bool checked);
QColor alternateColor() const;
Q_REQUIRED_RESULT QColor alternateColor() const;
private:
mutable QColor mAlternateColor;
......
......@@ -31,7 +31,7 @@ namespace PimCommon {
class PIMCOMMONAKONADI_EXPORT AddresseeLineEditUtil
{
public:
static QString adaptPasteMails(const QString &str);
static Q_REQUIRED_RESULT QString adaptPasteMails(const QString &str);
};
}
......
......@@ -32,7 +32,7 @@ public:
void setBlackList(const QStringList &lst);
QStringList cleanupEmailList();
Q_REQUIRED_RESULT QStringList cleanupEmailList();
private:
QString stripEmail(const QString &email, QString &address);
QStringList mListEmail;
......
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