#ifndef VLCLOADER_H #define VLCLOADER_H #include #include class VLCLoader : public QObject { Q_OBJECT private: libvlc_exception_t *m_exception; libvlc_instance_t *m_instance; static VLCLoader *s_instance; mutable QString m_lastError; VLCLoader(); public: ~VLCLoader(); static VLCLoader* instance(); libvlc_instance_t* vlc(); libvlc_exception_t* exception(); bool checkError() const; QString lastError() const; bool isMuted() const; int volume() const; public slots: bool toggleMute(); bool setMute(bool muted); bool setVolume(int volume); }; #endif // VLCLOADER_H