From c1e0a92a34e4034d058295666a07afc8c3dfbf31 Mon Sep 17 00:00:00 2001 From: yyc1234 Date: Thu, 17 Oct 2024 14:14:06 +0000 Subject: [PATCH] update services/print_service/include/print_cups_client.h. Signed-off-by: yyc1234 --- services/print_service/include/print_cups_client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/print_service/include/print_cups_client.h b/services/print_service/include/print_cups_client.h index e3b4a70..3247fc5 100644 --- a/services/print_service/include/print_cups_client.h +++ b/services/print_service/include/print_cups_client.h @@ -99,6 +99,7 @@ public: int32_t QueryPrinterInfoByPrinterId(const std::string& printerId, PrinterInfo &info); int32_t DiscoverUsbPrinters(std::vector &printers); int32_t QueryPrinterCapabilityFromPPD(const std::string &name, PrinterCapability &printerCaps); + bool CheckPrinterOnline(JobMonitorParam *param, const uint32_t timeout); private: bool HandleFiles(JobParameters *jobParams, uint32_t num_files, http_t *http, uint32_t jobId); @@ -107,7 +108,6 @@ private: void HandleJobState(http_t *http, JobMonitorParam *param, JobStatus *jobStatus, JobStatus *prevousJobStatus); void QueryJobState(http_t *http, JobMonitorParam *param, JobStatus *jobStatus); - bool CheckPrinterOnline(JobMonitorParam *param, const uint32_t timeout); static void JobStatusCallback(JobMonitorParam *param, JobStatus *jobStatus, bool isOffline); static void ReportBlockedReason(JobMonitorParam *param, JobStatus *jobStatus); static void SymlinkFile(std::string srcFilePath, std::string destFilePath);