75b824d032
js2-mode is no longer developed and we recommend js-mode these days, so switch the modelines to specify that, and make them consistent across all files. https://bugzilla.gnome.org/show_bug.cgi?id=660358
33 lines
959 B
JavaScript
33 lines
959 B
JavaScript
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
|
|
|
const DBus = imports.dbus;
|
|
|
|
const ConsoleKitManagerIface = {
|
|
name: 'org.freedesktop.ConsoleKit.Manager',
|
|
methods: [{ name: 'CanRestart',
|
|
inSignature: '',
|
|
outSignature: 'b' },
|
|
{ name: 'CanStop',
|
|
inSignature: '',
|
|
outSignature: 'b' },
|
|
{ name: 'Restart',
|
|
inSignature: '',
|
|
outSignature: '' },
|
|
{ name: 'Stop',
|
|
inSignature: '',
|
|
outSignature: '' }]
|
|
};
|
|
|
|
function ConsoleKitManager() {
|
|
this._init();
|
|
};
|
|
|
|
ConsoleKitManager.prototype = {
|
|
_init: function() {
|
|
DBus.system.proxifyObject(this,
|
|
'org.freedesktop.ConsoleKit',
|
|
'/org/freedesktop/ConsoleKit/Manager');
|
|
}
|
|
};
|
|
DBus.proxifyPrototype(ConsoleKitManager.prototype, ConsoleKitManagerIface);
|