Home
last modified time | relevance | path

Searched refs:PrintAsyncCall (Results 1 – 10 of 10) sorted by relevance

/base/print/print_fwk/interfaces/kits/napi/src/
Dprint_async_call.cpp22 PrintAsyncCall::PrintAsyncCall(napi_env env, napi_callback_info info, in PrintAsyncCall() function in OHOS::Print::PrintAsyncCall
44 PrintAsyncCall::~PrintAsyncCall() in ~PrintAsyncCall()
53 napi_value PrintAsyncCall::Call(napi_env env, Context::ExecAction exec) in Call()
68 napi_create_async_work(env, nullptr, resource, PrintAsyncCall::OnExecute, in Call()
69 PrintAsyncCall::OnComplete, context_, &work); in Call()
77 napi_value PrintAsyncCall::SyncCall(napi_env env, PrintAsyncCall::Context::ExecAction exec) in SyncCall()
88 PrintAsyncCall::OnExecute(env, context_); in SyncCall()
89 PrintAsyncCall::OnComplete(env, napi_ok, context_); in SyncCall()
93 void PrintAsyncCall::OnExecute(napi_env env, void *data) in OnExecute()
107 void PrintAsyncCall::OnComplete(napi_env env, napi_status status, void *data) in OnComplete()
[all …]
Dnapi_inner_print.cpp53 auto exec = [context](PrintAsyncCall::Context *ctx) { in QueryExtensionInfo()
62PrintAsyncCall asyncCall(env, info, std::dynamic_pointer_cast<PrintAsyncCall::Context>(context)); in QueryExtensionInfo()
95 auto exec = [context](PrintAsyncCall::Context *ctx) { in StartDiscovery()
104PrintAsyncCall asyncCall(env, info, std::dynamic_pointer_cast<PrintAsyncCall::Context>(context)); in StartDiscovery()
121 auto exec = [context](PrintAsyncCall::Context *ctx) { in StopDiscovery()
130PrintAsyncCall asyncCall(env, info, std::dynamic_pointer_cast<PrintAsyncCall::Context>(context)); in StopDiscovery()
153 auto exec = [context](PrintAsyncCall::Context *ctx) { in ConnectPrinter()
162PrintAsyncCall asyncCall(env, info, std::dynamic_pointer_cast<PrintAsyncCall::Context>(context)); in ConnectPrinter()
185 auto exec = [context](PrintAsyncCall::Context *ctx) { in DisconnectPrinter()
194PrintAsyncCall asyncCall(env, info, std::dynamic_pointer_cast<PrintAsyncCall::Context>(context)); in DisconnectPrinter()
[all …]
Dnapi_print_ext.cpp63 auto exec = [context](PrintAsyncCall::Context *ctx) { in AddPrinters()
72PrintAsyncCall asyncCall(env, info, std::dynamic_pointer_cast<PrintAsyncCall::Context>(context)); in AddPrinters()
110 auto exec = [context](PrintAsyncCall::Context *ctx) { in RemovePrinters()
119PrintAsyncCall asyncCall(env, info, std::dynamic_pointer_cast<PrintAsyncCall::Context>(context)); in RemovePrinters()
159 auto exec = [context](PrintAsyncCall::Context *ctx) { in UpdatePrinters()
168PrintAsyncCall asyncCall(env, info, std::dynamic_pointer_cast<PrintAsyncCall::Context>(context)); in UpdatePrinters()
207 auto exec = [context](PrintAsyncCall::Context *ctx) { in UpdatePrinterState()
216PrintAsyncCall asyncCall(env, info, std::dynamic_pointer_cast<PrintAsyncCall::Context>(context)); in UpdatePrinterState()
261 auto exec = [context](PrintAsyncCall::Context *ctx) { in UpdatePrintJobState()
271PrintAsyncCall asyncCall(env, info, std::dynamic_pointer_cast<PrintAsyncCall::Context>(context)); in UpdatePrintJobState()
[all …]
Dprint_task.cpp169 auto exec = [context](PrintAsyncCall::Context *ctx) { in Off()
178PrintAsyncCall asyncCall(env, info, std::dynamic_pointer_cast<PrintAsyncCall::Context>(context)); in Off()
Dnapi_print_task.cpp77PrintAsyncCall asyncCall(env, info, std::dynamic_pointer_cast<PrintAsyncCall::Context>(context)); in Print()
/base/print/print_fwk/interfaces/kits/napi/include/
Dprint_async_call.h27 class PrintAsyncCall final {
84 friend class PrintAsyncCall;
93 PrintAsyncCall(napi_env env, napi_callback_info info, std::shared_ptr<Context> context,
95 ~PrintAsyncCall();
Dnapi_print_task.h26 struct PrintTaskContext : public PrintAsyncCall::Context {
Dprint_task.h45 struct TaskEventContext : public PrintAsyncCall::Context {
Dnapi_print_ext.h47 struct NapiPrintExtContext : public PrintAsyncCall::Context {
Dnapi_inner_print.h51 struct InnerPrintContext : public PrintAsyncCall::Context {