2011-09-28 13:16:26 +00:00
|
|
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
2011-09-06 20:17:08 +00:00
|
|
|
|
2011-11-20 16:52:50 +00:00
|
|
|
const Gio = imports.gi.Gio;
|
2011-09-06 20:17:08 +00:00
|
|
|
const Lang = imports.lang;
|
|
|
|
const Shell = imports.gi.Shell;
|
|
|
|
const Signals = imports.signals;
|
|
|
|
|
2011-11-20 16:52:50 +00:00
|
|
|
const FprintManagerIface = <interface name='net.reactivated.Fprint.Manager'>
|
|
|
|
<method name='GetDefaultDevice'>
|
|
|
|
<arg type='o' direction='out' />
|
|
|
|
</method>
|
|
|
|
</interface>;
|
2011-09-06 20:17:08 +00:00
|
|
|
|
2011-11-20 16:52:50 +00:00
|
|
|
const FprintManagerProxy = Gio.DBusProxy.makeProxyWrapper(FprintManagerIface);
|
2011-09-06 20:17:08 +00:00
|
|
|
|
2011-11-20 16:52:50 +00:00
|
|
|
function FprintManager() {
|
|
|
|
return new FprintManagerProxy(Gio.DBus.system,
|
|
|
|
'net.reactivated.Fprint',
|
|
|
|
'/net/reactivated/Fprint/Manager');
|
2011-09-06 20:17:08 +00:00
|
|
|
};
|