GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
AsyncUtils.h
1 
29 #pragma once
30 
31 #include "core/GpgFrontendCore.h"
32 #include "core/thread/Task.h"
33 #include "core/typedef/CoreTypedef.h"
34 #include "core/typedef/GpgTypedef.h"
35 
36 namespace GpgFrontend {
37 
46 auto GPGFRONTEND_CORE_EXPORT
47 RunGpgOperaAsync(const GpgOperaRunnable& runnable,
48  const GpgOperationCallback& callback, const QString& operation,
49  const QString& minial_version) -> Thread::Task::TaskHandler;
50 
59 auto GPGFRONTEND_CORE_EXPORT RunGpgOperaSync(const GpgOperaRunnable& runnable,
60  const QString& operation,
61  const QString& minial_version)
62  -> std::tuple<GpgError, DataObjectPtr>;
63 
71 auto GPGFRONTEND_CORE_EXPORT RunIOOperaAsync(const OperaRunnable& runnable,
72  const OperationCallback& callback,
73  const QString& operation)
74  -> Thread::Task::TaskHandler;
75 
84 auto GPGFRONTEND_CORE_EXPORT RunOperaAsync(const OperaRunnable& runnable,
85  const OperationCallback& callback,
86  const QString& operation)
87  -> Thread::Task::TaskHandler;
88 } // namespace GpgFrontend
Definition: app.cpp:38
auto RunGpgOperaSync(const GpgOperaRunnable &runnable, const QString &operation, const QString &minial_version) -> std::tuple< GpgError, DataObjectPtr >
Definition: AsyncUtils.cpp:80
auto RunIOOperaAsync(const OperaRunnable &runnable, const OperationCallback &callback, const QString &operation) -> Thread::Task::TaskHandler
Definition: AsyncUtils.cpp:99
auto RunOperaAsync(const OperaRunnable &runnable, const OperationCallback &callback, const QString &operation) -> Thread::Task::TaskHandler
Definition: AsyncUtils.cpp:127
auto RunGpgOperaAsync(const GpgOperaRunnable &runnable, const GpgOperationCallback &callback, const QString &operation, const QString &minial_version) -> Thread::Task::TaskHandler
Definition: AsyncUtils.cpp:39