1 /*****************************************************************************
2 * vlm.hpp : VLM Management
3 ****************************************************************************
4 * Copyright ( C ) 2006 the VideoLAN team
5 * $Id: vlm.hpp 21875 2007-09-08 16:01:33Z jb $
7 * Authors: Jean-François Massol <jf.massol@gmail.com>
8 * Jean-Baptiste Kempf <jb@videolan.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * ( at your option ) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #ifndef _VLM_DIALOG_H_
26 #define _VLM_DIALOG_H_
31 #include "util/qvlcframe.hpp"
55 class VLMDialog : public QVLCFrame
59 static VLMDialog * getInstance( intf_thread_t *p_intf )
62 instance = new VLMDialog( p_intf );
68 VLMDialog( intf_thread_t * );
69 static VLMDialog *instance;
72 QList<VLMObject *> vlmItems;
75 QVBoxLayout *vlmItemLayout;
76 QWidget *vlmItemWidget;
81 QSpinBox *scherepeatnumber;
82 bool isNameGenuine( QString );
84 void removeVLMItem( VLMObject * );
85 void startModifyVLMItem( VLMObject * );
89 void saveModifications();
90 void showScheduleWidget( int );
91 void selectVLMItem( int );
94 class VLMObject : public QGroupBox
97 friend class VLMDialog;
99 VLMObject( int type, QString name, QString input, QString output, bool _enable, VLMDialog *parent );
108 virtual void enterEvent( QEvent * );
113 void togglePlayPause();