Home
last modified time | relevance | path

Searched refs:printerName (Results 1 – 19 of 19) sorted by relevance

/base/print/print_fwk/frameworks/helper/src/
Dprinter_info_helper.cpp74 …std::string printerName = NapiPrintUtils::GetStringPropertyUtf8(env, jsValue, PARAM_INFO_PRINTERNA… in BuildFromJs() local
75 if (printerId == "" || printerName == "") { in BuildFromJs()
77 printerId.c_str(), printerName.c_str()); in BuildFromJs()
81 nativeObj->SetPrinterName(printerName); in BuildFromJs()
/base/print/print_fwk/services/include/
Dprint_cups_client.h79 std::string printerName; member
113 int32_t AddPrinterToCups(const std::string &printerUri, const std::string &printerName);
136 bool IsPrinterExist(const char* printerUri, const char* printerName);
Dprint_service_ability.h76 … int32_t AddPrinterToCups(const std::string &printerUri, const std::string &printerName) override;
/base/print/print_fwk/interfaces/kits/jskits/
D@ohos.print.d.ts120 printerName: string; // printer name property
536 …function addPrinterToCups(printerUri: string, printerName: string, callback: AsyncCallback<boolean…
537 function addPrinterToCups(printerUri: string, printerName: string): Promise<boolean>;
/base/print/print_fwk/services/src/
Dprint_cups_client.cpp137 …_t PrintCupsClient::AddPrinterToCups(const std::string &printerUri, const std::string &printerName) in AddPrinterToCups() argument
144 if (IsPrinterExist(printerUri.c_str(), printerName.c_str())) { in AddPrinterToCups()
151 printerName.c_str()); in AddPrinterToCups()
154 ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-info", NULL, printerName.c_str()); in AddPrinterToCups()
344 if ((job_id = cupsCreateJob(http, jobParams->printerName.c_str(), jobParams->jobName.c_str(), in StartCupsJob()
355 cupsCancelJob2(http, jobParams->printerName.c_str(), job_id, 0); in StartCupsJob()
359 …status = cupsStartDocument(http, jobParams->printerName.c_str(), job_id, jobParams->jobName.c_str(… in StartCupsJob()
364 … if (status != HTTP_STATUS_CONTINUE || cupsFinishDocument(http, jobParams->printerName.c_str()) in StartCupsJob()
589 if (cupsCancelJob2(CUPS_HTTP_DEFAULT, currentJob->printerName.c_str(), in CancelCupsJob()
629 params->printerName = optionJson["printerName"]; in BuildJobParameters()
[all …]
Dprint_service_stub.cpp375 std::string printerName = data.ReadString(); in OnAddPrinterToCups() local
376 int32_t ret = AddPrinterToCups(printerUri, printerName); in OnAddPrinterToCups()
Dprint_service_ability.cpp590 …rintServiceAbility::AddPrinterToCups(const std::string &printerUri, const std::string &printerName) in AddPrinterToCups() argument
599 PrintCupsClient::GetInstance()->AddPrinterToCups(printerUri, printerName); in AddPrinterToCups()
/base/print/print_fwk/frameworks/innerkitsimpl/src/
Dprinter_info.cpp64 void PrinterInfo::SetPrinterName(std::string printerName) in SetPrinterName() argument
66 printerName_ = printerName; in SetPrinterName()
Dprint_manager_client.cpp312 …PrintManagerClient::AddPrinterToCups(const std::string &printerUri, const std::string &printerName) in AddPrinterToCups() argument
317 ret = printServiceProxy_->AddPrinterToCups(printerUri, printerName); in AddPrinterToCups()
Dprint_service_proxy.cpp387 … PrintServiceProxy::AddPrinterToCups(const std::string &printerUri, const std::string &printerName) in AddPrinterToCups() argument
393 data.WriteString(printerName); in AddPrinterToCups()
/base/print/print_fwk/frameworks/innerkitsimpl/include/
Dprinter_info.h35 void SetPrinterName(std::string printerName);
Diprint_service.h62 …virtual int32_t AddPrinterToCups(const std::string &printerUri, const std::string &printerName) = …
Dprint_service_proxy.h56 … int32_t AddPrinterToCups(const std::string &printerUri, const std::string &printerName) override;
Dprint_manager_client.h64 int32_t AddPrinterToCups(const std::string &printerUri, const std::string &printerName);
/base/print/print_fwk/interfaces/kits/napi/include/
Dnapi_print_ext.h63 std::string printerName = ""; member
/base/print/print_fwk/interfaces/kits/napi/src/
Dnapi_print_ext.cpp332 …std::string printerName = NapiPrintUtils::GetStringFromValueUtf8(env, argv[NapiPrintUtils::INDEX_O… in AddPrinterToCups() local
333 PRINT_HILOGD("printerName : %{private}s", printerName.c_str()); in AddPrinterToCups()
334 context->printerName = printerName; in AddPrinterToCups()
344 …t = PrintManagerClient::GetInstance()->AddPrinterToCups(context->printerUri, context->printerName); in AddPrinterToCups()
/base/print/print_fwk/test/unittest/service_test/mock/
Dmock_print_service.h129 int32_t AddPrinterToCups(const std::string &printerUri, const std::string &printerName) override in AddPrinterToCups() argument
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
Dprint_manager_client_test.cpp2206 std::string printerName; variable
2208 PrintManagerClient::GetInstance()->AddPrinterToCups(printerUri, printerName);
2214 std::string printerName; variable
2217 PrintManagerClient::GetInstance()->AddPrinterToCups(printerUri, printerName);
2223 std::string printerName; variable
2226 PrintManagerClient::GetInstance()->AddPrinterToCups(printerUri, printerName);
2232 std::string printerName; variable
2234 PrintManagerClient::GetInstance()->AddPrinterToCups(printerUri, printerName);
/base/print/print_fwk/test/unittest/service_test/
Dprint_service_ability_test.cpp2422 std::string printerName; variable
2424 service -> AddPrinterToCups(printerUrl, printerName);
2433 std::string printerName; variable
2435 service -> AddPrinterToCups(printerUrl, printerName);