00001 #include "nsISupports.idl" 00002 #include "tmozIScanFormat.idl" 00003 #include "tmozIScanInterpret.idl" 00004 00011 [scriptable, uuid(FA4D3635-B4CB-44cc-B09E-F5D2D733E8A7) ] 00012 interface tmozIScanDeviceNotify: nsISupports 00013 { 00020 void onScanBegin(); 00021 00028 void onScanFinished(); 00029 }; 00030 00031 00037 [scriptable, uuid(B5E52FAA-E0CA-4fb8-94C7-7DED31E3DE5E) ] 00038 interface tmozIScanDevice: nsISupports 00039 { 00043 readonly attribute AString name; 00044 00048 readonly attribute AString type; 00049 00055 void registerListener(in tmozIScanDeviceNotify scanNotify); 00056 00062 void unregisterListener(in tmozIScanDeviceNotify scanNotify); 00063 00071 void scan(in tmozIScanFormat scanProfile, 00072 in tmozIScanInterpret scanInterpret 00073 ); 00074 00083 void changeDevice(in AString devType, in AString devName); 00084 };