[gnome-music/wip/jfelder/mpris-cleanup: 13/32] mpris: Rename Server class to DBusInterface



commit f4dfb9dbd8da1bf15f54805ab21bb0985c7db48a
Author: Jean Felder <jfelder src gnome org>
Date:   Tue Oct 16 22:30:57 2018 +0200

    mpris: Rename Server class to DBusInterface
    
    Server name is too generic and does not really mean anything.

 gnomemusic/mpris.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index acd3e403..f52799c4 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -38,7 +38,8 @@ import gnomemusic.utils as utils
 logger = logging.getLogger(__name__)
 
 
-class Server:
+class DBusInterface:
+
     def __init__(self, con, path):
         method_outargs = {}
         method_inargs = {}
@@ -85,7 +86,7 @@ class Server:
             invocation.return_value(None)
 
 
-class MediaPlayer2Service(Server):
+class MediaPlayer2Service(DBusInterface):
     '''
     <!DOCTYPE node PUBLIC '-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
     'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]