summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2010-11-29 16:08:45 +0100
committerAnton Khirnov <anton@khirnov.net>2010-11-29 16:11:18 +0100
commit071069e48c9b2c4f2aeb2db4686eec827b72b722 (patch)
tree6568dedd7291e2d93351cfd9bd46db341360408a
parente3cf44a1490c2517dc9cb6fd1bf08f7155011c37 (diff)
mpclient: update comments
-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',