aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/utils/AsyncUtils.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-05-01 14:39:10 +0000
committersaturneric <[email protected]>2025-05-01 14:39:10 +0000
commitc48a85cc0bcd6dd79e177d42ec27d7cc8262fd2d (patch)
tree45f3f09ccf9f38975881e4ce49901c0ae42ae3cc /src/core/utils/AsyncUtils.h
parentfix: icon on linux platfrom (diff)
downloadGpgFrontend-c48a85cc0bcd6dd79e177d42ec27d7cc8262fd2d.tar.gz
GpgFrontend-c48a85cc0bcd6dd79e177d42ec27d7cc8262fd2d.zip
refactor: add cmake functions to register module and library
Diffstat (limited to 'src/core/utils/AsyncUtils.h')
-rw-r--r--src/core/utils/AsyncUtils.h32
1 files changed, 19 insertions, 13 deletions
diff --git a/src/core/utils/AsyncUtils.h b/src/core/utils/AsyncUtils.h
index 5be3b230..0dce9c30 100644
--- a/src/core/utils/AsyncUtils.h
+++ b/src/core/utils/AsyncUtils.h
@@ -43,10 +43,12 @@ namespace GpgFrontend {
* @param operation
* @param minimal_version
*/
-auto GPGFRONTEND_CORE_EXPORT
-RunGpgOperaAsync(int channel, const GpgOperaRunnable& runnable,
- const GpgOperationCallback& callback, const QString& operation,
- const QString& minimal_version) -> Thread::Task::TaskHandler;
+auto GF_CORE_EXPORT RunGpgOperaAsync(int channel,
+ const GpgOperaRunnable& runnable,
+ const GpgOperationCallback& callback,
+ const QString& operation,
+ const QString& minimal_version)
+ -> Thread::Task::TaskHandler;
/**
* @brief
@@ -56,9 +58,11 @@ RunGpgOperaAsync(int channel, const GpgOperaRunnable& runnable,
* @param minimal_version
* @return std::tuple<GpgError, DataObjectPtr>
*/
-auto GPGFRONTEND_CORE_EXPORT RunGpgOperaSync(
- int channel, const GpgOperaRunnable& runnable, const QString& operation,
- const QString& minimal_version) -> std::tuple<GpgError, DataObjectPtr>;
+auto GF_CORE_EXPORT RunGpgOperaSync(int channel,
+ const GpgOperaRunnable& runnable,
+ const QString& operation,
+ const QString& minimal_version)
+ -> std::tuple<GpgError, DataObjectPtr>;
/**
* @brief
@@ -67,9 +71,10 @@ auto GPGFRONTEND_CORE_EXPORT RunGpgOperaSync(
* @param callback
* @param operation
*/
-auto GPGFRONTEND_CORE_EXPORT RunIOOperaAsync(
- const OperaRunnable& runnable, const OperationCallback& callback,
- const QString& operation) -> Thread::Task::TaskHandler;
+auto GF_CORE_EXPORT RunIOOperaAsync(const OperaRunnable& runnable,
+ const OperationCallback& callback,
+ const QString& operation)
+ -> Thread::Task::TaskHandler;
/**
* @brief
@@ -79,7 +84,8 @@ auto GPGFRONTEND_CORE_EXPORT RunIOOperaAsync(
* @param operation
* @return Thread::Task::TaskHandler
*/
-auto GPGFRONTEND_CORE_EXPORT
-RunOperaAsync(const OperaRunnable& runnable, const OperationCallback& callback,
- const QString& operation) -> Thread::Task::TaskHandler;
+auto GF_CORE_EXPORT RunOperaAsync(const OperaRunnable& runnable,
+ const OperationCallback& callback,
+ const QString& operation)
+ -> Thread::Task::TaskHandler;
} // namespace GpgFrontend \ No newline at end of file