interaction.hpp 1.83 KB
Newer Older
zorglub's avatar
zorglub committed
1
2
3
/*****************************************************************************
 * interaction.hpp : Interaction dialogs
 ****************************************************************************
4
5
 * Copyright (C) 2006 the VideoLAN team
 * $Id$
zorglub's avatar
zorglub committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 *
 * Authors: Clément Stenac <zorglub@videolan.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/

#ifndef _INTERACTION_H_
#define _INTERACTION_H_

#include <vlc/vlc.h>
#include <vlc_interaction.h>
zorglub's avatar
zorglub committed
28
29
30
31
32
33
34
#undef Q_
#include <ui/inputdialog.h>
#undef Q_
#include <ui/logindialog.h>
#undef Q_
#include <ui/progressdialog.h>
#undef Q_
zorglub's avatar
zorglub committed
35
36
37
38
39
40
41
42
43
44
45
46
47

class InteractionDialog : public QWidget
{
    Q_OBJECT
public:
    InteractionDialog( intf_thread_t *, interaction_dialog_t * );
    virtual ~InteractionDialog();

    void Update();

private:
    intf_thread_t *p_intf;
    interaction_dialog_t *p_dialog;
zorglub's avatar
zorglub committed
48
49
50
    Ui::LoginDialog *uiLogin;
    Ui::InputDialog *uiInput;
    Ui::ProgressDialog *uiProgress;
zorglub's avatar
zorglub committed
51

zorglub's avatar
zorglub committed
52
53
54
    QPushButton *defaultButton, *otherButton, *altButton;
    QLabel *description;

zorglub's avatar
zorglub committed
55
    void Finish( int );
zorglub's avatar
zorglub committed
56
private slots:
zorglub's avatar
zorglub committed
57
58
59
    void defaultB();
    void altB();
    void otherB();
zorglub's avatar
zorglub committed
60
61
62
};

#endif