variables.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * external.hpp : Dialogs from other LibVLC core and other plugins
00003  ****************************************************************************
00004  * Copyright (C) 2009 Rémi Denis-Courmont
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
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

Generated on Tue May 25 08:04:58 2010 for VLC by  doxygen 1.5.6