blob: 797f3b8a6b351a347d0cc227fa929d07843bf85c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef VLCLOADER_H
#define VLCLOADER_H
#include <vlc/vlc.h>
#include <QObject>
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
|