]> git.sesse.net Git - vlc/blob - modules/gui/qt4/dialogs/podcast_configuration.hpp
796b12e0cc47151f3d9be4a61d2e4f554d787435
[vlc] / modules / gui / qt4 / dialogs / podcast_configuration.hpp
1 /*****************************************************************************
2  * podcast_configuration.hpp: Podcast configuration dialog
3  ****************************************************************************
4  * Copyright (C) 2007 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Antoine Cellerier <dionoea at videolan dot org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifndef _PODCAST_CONFIGURATION_DIALOG_H_
25 #define _PODCAST_CONFIGURATION_DIALOG_H_
26
27 #include "util/qvlcframe.hpp"
28 #include "ui/podcast_configuration.h"
29
30 class PodcastConfigDialog : public QVLCDialog
31 {
32     Q_OBJECT;
33 public:
34     static PodcastConfigDialog * getInstance( intf_thread_t *p_intf )
35     {
36         if( !instance )
37             instance = new PodcastConfigDialog( (QWidget *)p_intf->p_sys->p_mi, 
38                                                 p_intf );
39         return instance;
40     }
41     virtual ~PodcastConfigDialog();
42
43 private:
44     PodcastConfigDialog( QWidget *, intf_thread_t * );
45     static PodcastConfigDialog *instance;
46     Ui::PodcastConfiguration ui;
47 public slots:
48     void accept();
49     void add();
50     void remove();
51 };
52
53 #endif