From 071069e48c9b2c4f2aeb2db4686eec827b72b722 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 29 Nov 2010 16:08:45 +0100 Subject: mpclient: update comments --- nephilim/mpclient.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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', -- cgit v1.2.3