Commit 618ecb43 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing Q_REQUIRED_RESULT

parent 23b4f0f3
Pipeline #194340 passed with stage
in 12 minutes and 39 seconds
......@@ -28,7 +28,7 @@ public:
/**
* Returns whether Accounts integration is enabled.
*/
bool isEnabled() const;
Q_REQUIRED_RESULT bool isEnabled() const;
using AuthDataCallback = std::function<void(const QVariantMap &)>;
using ErrorCallback = std::function<void(const QString &)>;
......
......@@ -53,44 +53,44 @@ public:
* Returns the list of identifiers of all available
* agent types.
*/
QStringList agentTypes() const;
Q_REQUIRED_RESULT QStringList agentTypes() const;
/**
* Returns the i18n'ed name of the agent type for
* the given @p identifier.
*/
QString agentName(const QString &identifier) const;
Q_REQUIRED_RESULT QString agentName(const QString &identifier) const;
/**
* Returns the i18n'ed comment of the agent type for
* the given @p identifier..
*/
QString agentComment(const QString &identifier) const;
Q_REQUIRED_RESULT QString agentComment(const QString &identifier) const;
/**
* Returns the icon name of the agent type for the
* given @p identifier.
*/
QString agentIcon(const QString &identifier) const;
Q_REQUIRED_RESULT QString agentIcon(const QString &identifier) const;
/**
* Returns a list of supported mimetypes of the agent type
* for the given @p identifier.
*/
QStringList agentMimeTypes(const QString &identifier) const;
Q_REQUIRED_RESULT QStringList agentMimeTypes(const QString &identifier) const;
/**
* Returns a list of supported capabilities of the agent type
* for the given @p identifier.
*/
QStringList agentCapabilities(const QString &identifier) const;
Q_REQUIRED_RESULT QStringList agentCapabilities(const QString &identifier) const;
/**
* Returns a list of Custom added properties of the agent type
* for the given @p identifier
* @since 1.11
*/
QVariantMap agentCustomProperties(const QString &identifier) const;
Q_REQUIRED_RESULT QVariantMap agentCustomProperties(const QString &identifier) const;
/**
* Creates a new agent of the given agent type @p identifier.
......@@ -101,7 +101,7 @@ public:
* agent and an unique instance number, and looks like
* the following: 'file_1' or 'imap_267'.
*/
QString createAgentInstance(const QString &identifier);
Q_REQUIRED_RESULT QString createAgentInstance(const QString &identifier);
/**
* Removes the agent with the given @p identifier.
......@@ -111,12 +111,12 @@ public:
/**
* Returns the type of the agent instance with the given @p identifier.
*/
QString agentInstanceType(const QString &identifier);
Q_REQUIRED_RESULT QString agentInstanceType(const QString &identifier);
/**
* Returns the list of identifiers of configured instances.
*/
QStringList agentInstances() const;
Q_REQUIRED_RESULT QStringList agentInstances() const;
/**
* Returns the current status code of the agent with the given @p identifier.
......@@ -127,13 +127,13 @@ public:
* Returns the i18n'ed description of the current status of the agent with
* the given @p identifier.
*/
QString agentInstanceStatusMessage(const QString &identifier) const;
Q_REQUIRED_RESULT QString agentInstanceStatusMessage(const QString &identifier) const;
/**
* Returns the current progress of the agent with the given @p identifier
* in percentage.
*/
uint agentInstanceProgress(const QString &identifier) const;
Q_REQUIRED_RESULT uint agentInstanceProgress(const QString &identifier) const;
/**
* Returns the i18n'ed description of the current progress of the agent with
......@@ -149,7 +149,7 @@ public:
/**
* Returns the name of the agent instance with the given @p identifier.
*/
QString agentInstanceName(const QString &identifier) const;
Q_REQUIRED_RESULT QString agentInstanceName(const QString &identifier) const;
/**
* Triggers the agent instance with the given @p identifier to show
......
Supports Markdown
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