]> git.sesse.net Git - vlc/blob - modules/gui/qt4/dialogs/help.hpp
e8bf68ffe02450c6f1932ffa21bdab46c040a627
[vlc] / modules / gui / qt4 / dialogs / help.hpp
1 /*****************************************************************************
2  * Help.hpp : Help and About dialogs
3  ****************************************************************************
4  * Copyright (C) 2007 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Jean-Baptiste Kempf <jb (at) videolan.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 _HELP_DIALOG_H_
25 #define _HELP_DIALOG_H_
26
27 #include <vlc_update.h>
28
29 #include "util/qvlcframe.hpp"
30
31 class QPushButton;
32 class QCheckBox;
33
34 class HelpDialog : public QVLCFrame
35 {
36     Q_OBJECT;
37 public:
38     static HelpDialog * getInstance( intf_thread_t *p_intf )
39     {
40         if( !instance)
41             instance = new HelpDialog( p_intf );
42         return instance;
43     }
44     virtual ~HelpDialog();
45
46 private:
47     HelpDialog( intf_thread_t *);
48     static HelpDialog *instance;
49 public slots:
50     void close();
51 };
52
53
54 class AboutDialog : public QVLCFrame
55 {
56     Q_OBJECT;
57 public:
58     static AboutDialog * getInstance( intf_thread_t *p_intf )
59     {
60         if( !instance)
61             instance = new AboutDialog( p_intf);
62         return instance;
63     }
64     virtual ~AboutDialog();
65
66 private:
67     AboutDialog( intf_thread_t *);
68     static AboutDialog *instance;
69 public slots:
70     void close();
71 };
72
73
74 class UpdateDialog : public QVLCFrame
75 {
76     Q_OBJECT;
77 public:
78     static UpdateDialog * getInstance( intf_thread_t *p_intf )
79     {
80         if( !instance)
81             instance = new UpdateDialog( p_intf);
82         return instance;
83     }
84     virtual ~UpdateDialog();
85
86 private:
87     UpdateDialog( intf_thread_t *);
88     static UpdateDialog *instance;
89     QPushButton *updateButton;
90     QCheckBox *checkInfo;
91     QCheckBox *checkSource;
92     QCheckBox *checkBinary;
93     QCheckBox *checkPlugin;
94     update_t *p_update;
95     bool b_updated;
96 private slots:
97     void close();
98     void updateOrUpload();
99 };
100
101
102 #endif