@Override public void setPrintJobTag( PrintJobId printJobId, String tag, IPrintSpoolerCallbacks callback, int sequece) throws RemoteException { boolean success = false; try { success = PrintSpoolerService.this.setPrintJobTag(printJobId, tag); } finally { callback.onSetPrintJobTagResult(success, sequece); } }
@Override public void getPrintJobInfo( PrintJobId printJobId, IPrintSpoolerCallbacks callback, int appId, int sequence) throws RemoteException { PrintJobInfo printJob = null; try { printJob = PrintSpoolerService.this.getPrintJobInfo(printJobId, appId); } finally { callback.onGetPrintJobInfoResult(printJob, sequence); } }
@Override public void setPrintJobState( PrintJobId printJobId, int state, String error, IPrintSpoolerCallbacks callback, int sequece) throws RemoteException { boolean success = false; try { success = PrintSpoolerService.this.setPrintJobState(printJobId, state, error); } finally { callback.onSetPrintJobStateResult(success, sequece); } }
@Override public void getPrintJobInfos( IPrintSpoolerCallbacks callback, ComponentName componentName, int state, int appId, int sequence) throws RemoteException { List<PrintJobInfo> printJobs = null; try { printJobs = PrintSpoolerService.this.getPrintJobInfos(componentName, state, appId); } finally { callback.onGetPrintJobInfosResult(printJobs, sequence); } }