2011-09-28 09:16:26 -04:00
|
|
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
2011-09-06 16:17:08 -04:00
|
|
|
|
2011-11-20 17:52:50 +01:00
|
|
|
const Gio = imports.gi.Gio;
|
2011-09-06 16:17:08 -04:00
|
|
|
const Lang = imports.lang;
|
|
|
|
const Shell = imports.gi.Shell;
|
|
|
|
const Signals = imports.signals;
|
|
|
|
|
2011-11-20 17:52:50 +01:00
|
|
|
const FprintManagerIface = <interface name='net.reactivated.Fprint.Manager'>
|
|
|
|
<method name='GetDefaultDevice'>
|
|
|
|
<arg type='o' direction='out' />
|
|
|
|
</method>
|
|
|
|
</interface>;
|
2011-09-06 16:17:08 -04:00
|
|
|
|
2011-12-10 14:54:39 +01:00
|
|
|
const FprintManager = new Gio.DBusProxyClass({
|
|
|
|
Name: 'FprintManager',
|
|
|
|
Interface: FprintManagerIface,
|
2011-09-06 16:17:08 -04:00
|
|
|
|
2011-12-10 14:54:39 +01:00
|
|
|
_init: function() {
|
|
|
|
this.parent({ g_bus_type: Gio.BusType.SYSTEM,
|
|
|
|
g_name: 'net.reactivated.Fprint',
|
|
|
|
g_object_path: '/net/reactivated/Fprint/Manager',
|
|
|
|
g_flags: (Gio.DBusProxyFlags.DO_NOT_LOAD_PROPERTIES) });
|
|
|
|
}
|
|
|
|
});
|