# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <vlc_meta.h>
#include <QWidget>
-#include <QLabel>
#include <limits.h>
class QTreeView;
class QSpinBox;
class QLineEdit;
+class CoverArtLabel;
class MetaPanel: public QWidget
{
- Q_OBJECT;
+ Q_OBJECT
public:
- MetaPanel( QWidget *, intf_thread_t * );
- virtual ~MetaPanel();
+ MetaPanel( QWidget *, struct intf_thread_t * );
void saveMeta();
bool isInEditMode();
private:
input_item_t *p_input;
- intf_thread_t *p_intf;
+ struct intf_thread_t *p_intf;
bool b_inEditMode;
QLineEdit *title_text;
QLineEdit *nowplaying_text;
QLineEdit *publisher_text;
// QLineEdit *encodedby_text;
- QLabel *art_cover;
+ CoverArtLabel *art_cover;
public slots:
void update( input_item_t * );
void enterEditMode();
signals:
- void uriSet( QString );
+ void uriSet( const QString& );
void editing();
};
class ExtraMetaPanel: public QWidget
{
- Q_OBJECT;
+ Q_OBJECT
public:
- ExtraMetaPanel( QWidget *, intf_thread_t * );
- virtual ~ExtraMetaPanel() {};
+ ExtraMetaPanel( QWidget *, struct intf_thread_t * );
private:
- intf_thread_t *p_intf;
+ struct intf_thread_t *p_intf;
QTreeWidget *extraMetaTree;
public slots:
void update( input_item_t * );
class InputStatsPanel: public QWidget
{
- Q_OBJECT;
+ Q_OBJECT
public:
- InputStatsPanel( QWidget *, intf_thread_t * );
- virtual ~InputStatsPanel();
+ InputStatsPanel( QWidget *, struct intf_thread_t * );
private:
- intf_thread_t *p_intf;
+ struct intf_thread_t *p_intf;
QTreeWidget *StatsTree;
QTreeWidgetItem *input;
QTreeWidgetItem *input_bitrate_stat;
QTreeWidgetItem *demuxed_stat;
QTreeWidgetItem *stream_bitrate_stat;
+ QTreeWidgetItem *corrupted_stat;
+ QTreeWidgetItem *discontinuity_stat;
QTreeWidgetItem *video;
QTreeWidgetItem *vdecoded_stat;
class InfoPanel: public QWidget
{
- Q_OBJECT;
+ Q_OBJECT
public:
- InfoPanel( QWidget *, intf_thread_t * );
- virtual ~InfoPanel();
+ InfoPanel( QWidget *, struct intf_thread_t * );
private:
- intf_thread_t *p_intf;
+ struct intf_thread_t *p_intf;
QTreeWidget *InfoTree;
public slots:
void update( input_item_t * );
void clear();
};
-class ArtCover : public QLabel
-{
- Q_OBJECT
- void mouseDoubleClickEvent( QMouseEvent *event )
- {
- fprintf(stderr, "**************************" );
- }
-};
#endif