messages.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Messages.hpp : Information about a stream
00003  ****************************************************************************
00004  * Copyright (C) 2006-2007 the VideoLAN team
00005  * $Id: 762adb80d08b6e3d159f052775bc8e4c470eb356 $
00006  *
00007  * Authors: Jean-Baptiste Kempf <jb (at) videolan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef QVLC_MESSAGES_DIALOG_H_
00025 #define QVLC_MESSAGES_DIALOG_H_ 1
00026 
00027 #include "util/qvlcframe.hpp"
00028 #include "util/singleton.hpp"
00029 
00030 class QTabWidget;
00031 class QPushButton;
00032 class QSpinBox;
00033 class QGridLayout;
00034 class QLabel;
00035 class QTextEdit;
00036 class QTreeWidget;
00037 class QTreeWidgetItem;
00038 class QLineEdit;
00039 
00040 class MessagesDialog : public QVLCFrame, public Singleton<MessagesDialog>
00041 {
00042     Q_OBJECT
00043 private:
00044     MessagesDialog( intf_thread_t * );
00045     virtual ~MessagesDialog();
00046 
00047     QTabWidget *mainTab;
00048     QSpinBox *verbosityBox;
00049     QLabel *verbosityLabel;
00050     QTextEdit *messages;
00051     QTreeWidget *modulesTree;
00052     QPushButton *clearUpdateButton;
00053     QPushButton *saveLogButton;
00054     QLineEdit *vbobjectsEdit;
00055     QLabel *vbobjectsLabel;
00056     msg_subscription_t *sub;
00057     msg_cb_data_t *cbData;
00058     static void sinkMessage( msg_cb_data_t *, msg_item_t *, unsigned );
00059     void customEvent( QEvent * );
00060     void sinkMessage( msg_item_t *item );
00061 
00062 private slots:
00063     void updateTab( int );
00064     void clearOrUpdate();
00065     bool save();
00066     void updateConfig();
00067 private:
00068     void clear();
00069     void updateTree();
00070     void buildTree( QTreeWidgetItem *, vlc_object_t * );
00071 
00072     friend class    Singleton<MessagesDialog>;
00073 };
00074 
00075 #endif

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