Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#50: Fix DBusError is not a constructor #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/interfaces/mpris-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ const constants = require('../constants');
const logging = require('../logging');

let {
Interface, property, method, signal, DBusError,
Interface, property, method, signal,
ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE
} = dbus.interface;
let DBusError = dbus.DBusError;

class MprisInterface extends Interface {
constructor(name, player) {
Expand Down
4 changes: 3 additions & 1 deletion src/interfaces/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ const JSBI = require('jsbi');
const constants = require('../constants');

let {
property, method, signal, DBusError,
property, method, signal,
ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE
} = dbus.interface;

let DBusError = dbus.DBusError;

class PlayerInterface extends MprisInterface {
constructor(player) {
super('org.mpris.MediaPlayer2.Player', player);
Expand Down
3 changes: 2 additions & 1 deletion src/interfaces/playlists.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ let Variant = dbus.Variant;
let types = require('./types');

let {
property, method, signal, DBusError,
property, method, signal,
ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE
} = dbus.interface;
let DBusError = dbus.DBusError;

class PlaylistsInterface extends MprisInterface {
constructor(player) {
Expand Down
3 changes: 2 additions & 1 deletion src/interfaces/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ let dbus = require('dbus-next');
let Variant = dbus.Variant;

let {
property, method, signal, DBusError,
property, method, signal,
ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE
} = dbus.interface;
let DBusError = dbus.DBusError;

class RootInterface extends MprisInterface {
constructor(player, opts={}) {
Expand Down
3 changes: 2 additions & 1 deletion src/interfaces/tracklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ let Variant = dbus.Variant;
let types = require('./types');

let {
property, method, signal, DBusError,
property, method, signal,
ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE
} = dbus.interface;
let DBusError = dbus.DBusError;

class TracklistInterface extends MprisInterface {
constructor(player) {
Expand Down