Commit 98d71a44 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: add QVLCInteger

parent d15c2052
...@@ -65,3 +65,15 @@ void QVLCPointer::trigger (vlc_object_t *obj, vlc_value_t old, vlc_value_t cur) ...@@ -65,3 +65,15 @@ void QVLCPointer::trigger (vlc_object_t *obj, vlc_value_t old, vlc_value_t cur)
emit pointerChanged (obj, old.p_address, cur.p_address); emit pointerChanged (obj, old.p_address, cur.p_address);
emit pointerChanged (obj, cur.p_address); emit pointerChanged (obj, cur.p_address);
} }
QVLCInteger::QVLCInteger (vlc_object_t *obj, const char *varname, bool inherit)
: QVLCVariable (obj, varname, VLC_VAR_INTEGER, inherit)
{
}
void QVLCInteger::trigger (vlc_object_t *obj, vlc_value_t old, vlc_value_t cur)
{
emit integerChanged (obj, old.i_int, cur.i_int);
emit integerChanged (obj, cur.i_int);
}
...@@ -53,4 +53,18 @@ signals: ...@@ -53,4 +53,18 @@ signals:
void pointerChanged (vlc_object_t *, void *); void pointerChanged (vlc_object_t *, void *);
}; };
class QVLCInteger : public QVLCVariable
{
Q_OBJECT
private:
virtual void trigger (vlc_object_t *, vlc_value_t, vlc_value_t);
public:
QVLCInteger (vlc_object_t *, const char *, bool inherit = false);
signals:
void integerChanged (vlc_object_t *, int, int);
void integerChanged (vlc_object_t *, int);
};
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment