variables.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef QVLC_VARIABLES_H_
00022 #define QVLC_VARIABLES_H_ 1
00023
00024 #include <QObject>
00025 #include <vlc_common.h>
00026
00027 class QVLCVariable : public QObject
00028 {
00029 Q_OBJECT
00030 private:
00031 static int callback (vlc_object_t *, const char *,
00032 vlc_value_t, vlc_value_t, void *);
00033 vlc_object_t *object;
00034 QString name;
00035 virtual void trigger (vlc_object_t *, vlc_value_t, vlc_value_t) = 0;
00036
00037 public:
00038 QVLCVariable (vlc_object_t *, const char *, int, bool);
00039 virtual ~QVLCVariable (void);
00040 };
00041
00042 class QVLCPointer : public QVLCVariable
00043 {
00044 Q_OBJECT
00045 private:
00046 virtual void trigger (vlc_object_t *, vlc_value_t, vlc_value_t);
00047
00048 public:
00049 QVLCPointer (vlc_object_t *, const char *, bool inherit = false);
00050
00051 signals:
00052 void pointerChanged (vlc_object_t *, void *, void *);
00053 void pointerChanged (vlc_object_t *, void *);
00054 };
00055
00056 class QVLCInteger : public QVLCVariable
00057 {
00058 Q_OBJECT
00059 private:
00060 virtual void trigger (vlc_object_t *, vlc_value_t, vlc_value_t);
00061
00062 public:
00063 QVLCInteger (vlc_object_t *, const char *, bool inherit = false);
00064
00065 signals:
00066 void integerChanged (vlc_object_t *, int, int);
00067 void integerChanged (vlc_object_t *, int);
00068 };
00069
00070 #endif