Changeset 17 for lib/mpdconnection.h
- Timestamp:
- 12/30/07 20:55:36 (4 years ago)
- File:
-
- 1 edited
-
lib/mpdconnection.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lib/mpdconnection.h
r11 r17 6 6 #include <QTcpSocket> 7 7 8 #include "gui/musiclibraryitem.h" 8 9 #include "mpdstatus.h" 9 10 #include "song.h" … … 16 17 MPDConnection(QObject *parent = 0); 17 18 MPDConnection(const QString &host, const quint16 port, QObject *parent = 0); 18 //~MPDConnection();19 ~MPDConnection(); 19 20 void run(); 20 21 bool connectToMPD(); … … 26 27 27 28 // Database 29 void listAllInfo(); 30 void lsInfo(); 28 31 // TODO 29 32 30 33 // Playlist 34 void currentSong(); 35 void playListInfo(); 31 36 void removeSongs(const QList<qint32> &items); 32 37 // TODO … … 56 61 57 62 public slots: 58 // Playlist59 void currentSong();60 void playListInfo();61 62 63 // Miscellaneous 63 64 void getStatus(); 64 65 65 pr otected:66 private: 66 67 QString hostname; 67 68 quint16 port; … … 69 70 QTcpSocket sock; 70 71 bool connected; 72 QMutex mutex; 71 73 72 74 bool commandOk(); 73 75 void sendCommand(const QByteArray &command); 74 75 private:76 QMutex mutex;77 76 78 77 private slots: … … 80 79 81 80 signals: 81 void musicLibraryUpdated(QList<MusicLibraryItem *> *items); 82 82 void currentSongUpdated(Song *song); 83 83 void playlistUpdated(QList<Song *> *songs); 84 void statusUpdated( MPDStatus *status);84 void statusUpdated(const MPDStatus &status); 85 85 }; 86 86
Note: See TracChangeset
for help on using the changeset viewer.
