summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nephilim/mpclient.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/nephilim/mpclient.py b/nephilim/mpclient.py
index 5263ccd..dbacf24 100644
--- a/nephilim/mpclient.py
+++ b/nephilim/mpclient.py
@@ -23,7 +23,11 @@ from song import Song
from mpdsocket import MPDSocket
class AudioOutput(QtCore.QObject):
- """This class represents an MPD audio output."""
+ """
+ This class represents an MPD audio output.
+ Instances of this class are generated by MPClient, do not
+ instantiate directly.
+ """
#### PUBLIC ####
# constants
@@ -57,6 +61,14 @@ class AudioOutput(QtCore.QObject):
self.state_changed.emit(self.state)
class MPDStatus(dict):
+ """
+ This class represent MPD status with a dict-like interface.
+ Instances of this class are generated by MPClient, do not
+ instantiate directly.
+ """
+
+ #### PRIVATE ####
+ """All standard status items."""
_status = {'volume' : 0, 'repeat' : 0, 'single' : 0,
'consume' : 0, 'playlist' : '-1', 'playlistlength' : 0,
'state' : 'stop', 'song' : -1, 'songid' : '-1',