Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.print; |
| 18 | |
| 19 | import android.content.ComponentName; |
| 20 | import android.os.ParcelFileDescriptor; |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 21 | import android.print.IPrintDocumentAdapter; |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 22 | import android.print.IPrintClient; |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 23 | import android.print.IPrintSpoolerClient; |
| 24 | import android.print.IPrintSpoolerCallbacks; |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 25 | import android.print.PrinterInfo; |
| 26 | import android.print.PrintAttributes; |
| 27 | |
| 28 | /** |
| 29 | * Interface for communication with the print spooler service. |
| 30 | * |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 31 | * @see android.print.IPrintSpoolerCallbacks |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 32 | * |
| 33 | * @hide |
| 34 | */ |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 35 | oneway interface IPrintSpooler { |
| 36 | void getPrintJobInfos(IPrintSpoolerCallbacks callback, in ComponentName componentName, |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 37 | int state, int appId, int sequence); |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 38 | void getPrintJobInfo(int printJobId, IPrintSpoolerCallbacks callback, |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 39 | int appId, int sequence); |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 40 | void createPrintJob(String printJobName, in IPrintClient client, |
| 41 | in IPrintDocumentAdapter printAdapter, in PrintAttributes attributes, |
| 42 | IPrintSpoolerCallbacks callback, int appId, int sequence); |
| 43 | void cancelPrintJob(int printJobId, IPrintSpoolerCallbacks callback, |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 44 | int appId, int sequence); |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 45 | void setPrintJobState(int printJobId, int status, IPrintSpoolerCallbacks callback, |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 46 | int sequence); |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 47 | void setPrintJobTag(int printJobId, String tag, IPrintSpoolerCallbacks callback, |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 48 | int sequence); |
| 49 | void writePrintJobData(in ParcelFileDescriptor fd, int printJobId); |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 50 | void setClient(IPrintSpoolerClient client); |
| 51 | void notifyClientForActivteJobs(); |
| 52 | } |