Home
last modified time | relevance | path

Searched refs:jobInfo (Results 1 – 14 of 14) sorted by relevance

/base/print/print_fwk/interfaces/kits/jskits/
D@ohos.PrintExtensionAbility.d.ts94 onStartPrintJob(jobInfo: print.PrintJob): void;
105 onCancelPrintJob(jobInfo: print.PrintJob): void;
127 onRequestPreview(jobInfo: print.PrintJob): string;
D@ohos.print.d.ts304 function startPrintJob(jobInfo: PrintJob, callback: AsyncCallback<boolean>): void;
305 function startPrintJob(jobInfo: PrintJob): Promise<boolean>;
330 function requestPrintPreview(jobInfo: PrintJob, callback: (result: number) => void): void;
331 function requestPrintPreview(jobInfo: PrintJob): Promise<number>;
/base/print/print_fwk/frameworks/innerkitsimpl/src/
Dprint_job.cpp176 void PrintJob::UpdateParams(const PrintJob &jobInfo) in UpdateParams() argument
179 fdList_.assign(jobInfo.fdList_.begin(), jobInfo.fdList_.end()); in UpdateParams()
181 jobId_ = jobInfo.jobId_; in UpdateParams()
182 printerId_ = jobInfo.printerId_; in UpdateParams()
183 copyNumber_ = jobInfo.copyNumber_; in UpdateParams()
184 pageRange_ = jobInfo.pageRange_; in UpdateParams()
185 isSequential_ = jobInfo.isSequential_; in UpdateParams()
186 pageSize_ = jobInfo.pageSize_; in UpdateParams()
187 isLandscape_ = jobInfo.isLandscape_; in UpdateParams()
188 colorMode_ = jobInfo.colorMode_; in UpdateParams()
[all …]
/base/print/print_fwk/interfaces/kits/jsnapi/extension/
Dprint_extension.js37 onStartPrintJob(jobInfo) { argument
41 onCancelPrintJob(jobInfo) { argument
49 onRequestPreview(jobInfo) { argument
/base/print/print_fwk/services/src/
Dprint_service_ability.cpp620 int32_t PrintServiceAbility::StartPrintJob(const PrintJob &jobInfo) in StartPrintJob() argument
629 auto jobId = jobInfo.GetJobId(); in StartPrintJob()
630 auto printerId = jobInfo.GetPrinterId(); in StartPrintJob()
647 printJob->UpdateParams(jobInfo); in StartPrintJob()
652 PrintCupsClient::GetInstance()->AddCupsPrintJob(jobInfo); in StartPrintJob()
979 void PrintServiceAbility::ReportHisysEvent(const std::shared_ptr<PrintJob> &jobInfo, in ReportHisysEvent() argument
994 jobInfo->GetFdList(fdList); in ReportHisysEvent()
1002 msg["COPIES_SETTING"] = jobInfo->GetCopyNumber(); in ReportHisysEvent()
1003 std::string option = jobInfo->GetOption(); in ReportHisysEvent()
1017 msg["PRINT_STYLE_SETTING"] = jobInfo->GetDuplexMode(); in ReportHisysEvent()
[all …]
Dprint_cups_client.cpp211 void PrintCupsClient::AddCupsPrintJob(const PrintJob &jobInfo) in AddCupsPrintJob() argument
213 JobParameters *jobParams = BuildJobParameters(jobInfo); in AddCupsPrintJob()
602 JobParameters* PrintCupsClient::BuildJobParameters(const PrintJob &jobInfo) in BuildJobParameters() argument
605 if (!jobInfo.HasOption()) { in BuildJobParameters()
609 std::string option = jobInfo.GetOption(); in BuildJobParameters()
622 jobInfo.GetFdList(params->fdList); in BuildJobParameters()
623 params->serviceJobId = jobInfo.GetJobId(); in BuildJobParameters()
624 params->numCopies = jobInfo.GetCopyNumber(); in BuildJobParameters()
625 params->duplex = GetDulpexString(jobInfo.GetDuplexMode()); in BuildJobParameters()
627 params->mediaSize = GetMedieSize(jobInfo); in BuildJobParameters()
[all …]
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
Dprint_job_test.cpp402 PrintJob job, jobInfo; variable
417 PrintJob job, jobInfo; variable
428 jobInfo.Unmarshalling(parcel);
429 EXPECT_EQ(jobInfo.GetIsSequential(), false);
/base/print/print_fwk/interfaces/kits/napi/include/
Dprint_callback.h33 PrintJob jobInfo; member
/base/print/print_fwk/services/include/
Dprint_cups_client.h130 JobParameters* BuildJobParameters(const PrintJob &jobInfo);
132 std::string GetMedieSize(const PrintJob &jobInfo);
Dprint_service_ability.h94 void SendPrintJobEvent(const PrintJob &jobInfo);
103 …void ReportHisysEvent(const std::shared_ptr<PrintJob> &jobInfo, const std::string &printerId, uint…
105 void CheckJobQueueBlocked(const PrintJob &jobInfo);
/base/print/print_fwk/frameworks/innerkitsimpl/include/
Dprint_job.h71 void UpdateParams(const PrintJob& jobInfo);
Diprint_service.h44 virtual int32_t StartPrintJob(const PrintJob &jobInfo) = 0;
/base/print/print_fwk/interfaces/kits/napi/src/
Dprint_callback.cpp122 callbackValues[1] = PrintJobHelper::MakeJsObject(cbParam->env, cbParam->jobInfo); in PrintJobAfterCallFun()
221 param->jobInfo = info; in OnCallback()
/base/print/print_fwk/test/unittest/service_test/mock/
Dmock_print_service.h60 int32_t StartPrintJob(const PrintJob &jobInfo) override in StartPrintJob() argument