IPrintManager.aidl revision d26d4898fcc9b78f4b66118895c375384098205e
14b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov/* 24b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * Copyright (C) 2013 The Android Open Source Project 34b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * 44b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * Licensed under the Apache License, Version 2.0 (the "License"); 54b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * you may not use this file except in compliance with the License. 64b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * You may obtain a copy of the License at 74b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * 84b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * http://www.apache.org/licenses/LICENSE-2.0 94b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * 104b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * Unless required by applicable law or agreed to in writing, software 114b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * distributed under the License is distributed on an "AS IS" BASIS, 124b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 134b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * See the License for the specific language governing permissions and 144b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * limitations under the License. 154b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov */ 164b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov 174b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganovpackage android.print; 184b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov 1944720af55a8fdf991929983dad5d53c02851dd1eSvetoslav Ganovimport android.print.IPrinterDiscoveryObserver; 20a00271533f639c8ed36429c663889ac9f654bc72Svetoslav Ganovimport android.print.IPrintDocumentAdapter; 214b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganovimport android.print.IPrintClient; 2244720af55a8fdf991929983dad5d53c02851dd1eSvetoslav Ganovimport android.print.PrinterId; 234b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganovimport android.print.PrintJobInfo; 244b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganovimport android.print.PrintAttributes; 254b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov 264b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov/** 274b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * Interface for communication with the core print manager service. 284b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * 294b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov * @hide 304b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov */ 314b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganovinterface IPrintManager { 32a00271533f639c8ed36429c663889ac9f654bc72Svetoslav Ganov List<PrintJobInfo> getPrintJobInfos(int appId, int userId); 33a00271533f639c8ed36429c663889ac9f654bc72Svetoslav Ganov PrintJobInfo getPrintJobInfo(int printJobId, int appId, int userId); 34a00271533f639c8ed36429c663889ac9f654bc72Svetoslav Ganov PrintJobInfo print(String printJobName, in IPrintClient client, 35a00271533f639c8ed36429c663889ac9f654bc72Svetoslav Ganov in IPrintDocumentAdapter printAdapter, in PrintAttributes attributes, 36a00271533f639c8ed36429c663889ac9f654bc72Svetoslav Ganov int appId, int userId); 374b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov void cancelPrintJob(int printJobId, int appId, int userId); 388c43376ea83a67414bd6823a472b76d41160239eSvetoslav Ganov void restartPrintJob(int printJobId, int appId, int userId); 3944720af55a8fdf991929983dad5d53c02851dd1eSvetoslav Ganov 4044720af55a8fdf991929983dad5d53c02851dd1eSvetoslav Ganov void createPrinterDiscoverySession(in IPrinterDiscoveryObserver observer, int userId); 4144720af55a8fdf991929983dad5d53c02851dd1eSvetoslav Ganov void startPrinterDiscovery(in IPrinterDiscoveryObserver observer, 4244720af55a8fdf991929983dad5d53c02851dd1eSvetoslav Ganov in List<PrinterId> priorityList, int userId); 4344720af55a8fdf991929983dad5d53c02851dd1eSvetoslav Ganov void stopPrinterDiscovery(in IPrinterDiscoveryObserver observer, int userId); 44d26d4898fcc9b78f4b66118895c375384098205eSvetoslav Ganov void validatePrinters(in List<PrinterId> printerIds, int userId); 45d26d4898fcc9b78f4b66118895c375384098205eSvetoslav Ganov void startPrinterStateTracking(in PrinterId printerId, int userId); 46d26d4898fcc9b78f4b66118895c375384098205eSvetoslav Ganov void stopPrinterStateTracking(in PrinterId printerId, int userId); 4744720af55a8fdf991929983dad5d53c02851dd1eSvetoslav Ganov void destroyPrinterDiscoverySession(in IPrinterDiscoveryObserver observer, 4844720af55a8fdf991929983dad5d53c02851dd1eSvetoslav Ganov int userId); 494b9a4d16872bbb50712e007b419ac0b35ff1582dSvetoslav Ganov} 50