Changeset 17 for lib/mpdconnection.h


Ignore:
Timestamp:
12/30/07 20:55:36 (4 years ago)
Author:
sander
Message:

Lots of updates, the music library is now being showed in the tree view. Though it doesn't actually do anything yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/mpdconnection.h

    r11 r17  
    66#include <QTcpSocket> 
    77 
     8#include "gui/musiclibraryitem.h" 
    89#include "mpdstatus.h" 
    910#include "song.h" 
     
    1617        MPDConnection(QObject *parent = 0); 
    1718        MPDConnection(const QString &host, const quint16 port, QObject *parent = 0); 
    18         //~MPDConnection(); 
     19        ~MPDConnection(); 
    1920        void run(); 
    2021        bool connectToMPD(); 
     
    2627 
    2728        // Database 
     29        void listAllInfo(); 
     30        void lsInfo(); 
    2831        // TODO 
    2932 
    3033        // Playlist 
     34        void currentSong(); 
     35        void playListInfo(); 
    3136        void removeSongs(const QList<qint32> &items); 
    3237        // TODO 
     
    5661 
    5762    public slots: 
    58         // Playlist 
    59         void currentSong(); 
    60         void playListInfo(); 
    61  
    6263        // Miscellaneous 
    6364        void getStatus(); 
    6465 
    65     protected: 
     66    private: 
    6667        QString hostname; 
    6768        quint16 port; 
     
    6970        QTcpSocket sock; 
    7071        bool connected; 
     72        QMutex mutex; 
    7173 
    7274        bool commandOk(); 
    7375        void sendCommand(const QByteArray &command); 
    74  
    75     private: 
    76         QMutex mutex; 
    7776 
    7877    private slots: 
     
    8079 
    8180    signals: 
     81        void musicLibraryUpdated(QList<MusicLibraryItem *> *items); 
    8282        void currentSongUpdated(Song *song); 
    8383        void playlistUpdated(QList<Song *> *songs); 
    84         void statusUpdated(MPDStatus *status); 
     84        void statusUpdated(const MPDStatus &status); 
    8585}; 
    8686 
Note: See TracChangeset for help on using the changeset viewer.