source: trunk/qt/session-dialog.h @ 8324

Last change on this file since 8324 was 8324, checked in by charles, 13 years ago

(trunk qt) add dialog to set local/remote session source

File size: 1.2 KB
Line 
1/*
2 * This file Copyright (C) 2009 Charles Kerr <charles@transmissionbt.com>
3 *
4 * This file is licensed by the GPL version 2.  Works owned by the
5 * Transmission project are granted a special exemption to clause 2(b)
6 * so that the bulk of its code can remain under the MIT license.
7 * This exemption does not extend to derived works not owned by
8 * the Transmission project.
9 *
10 * $Id:$
11 */
12
13#ifndef SESSION_DIALOG_H
14#define SESSION_DIALOG_H
15
16#include <QDialog>
17#include <QWidgetList>
18
19class Prefs;
20class Session;
21class QCheckBox;
22class QLineEdit;
23class QRadioButton;
24class QSpinBox;
25
26class SessionDialog: public QDialog
27{
28        Q_OBJECT
29
30    public:
31        SessionDialog( Session& session, Prefs& prefs, QWidget * parent = 0 );
32        ~SessionDialog( ) { }
33
34    private slots:
35        void onAccepted( );
36        void resensitize( );
37
38    private:
39        QCheckBox * myAuthCheckBox;
40        QRadioButton * myRemoteRadioButton;
41        QLineEdit * myHostLineEdit;
42        QSpinBox * myPortSpinBox;
43        QLineEdit * myUsernameLineEdit;
44        QLineEdit * myPasswordLineEdit;
45        QCheckBox * myAutomaticCheckBox;
46
47    private:
48        Session& mySession;
49        Prefs& myPrefs;
50        QWidgetList myRemoteWidgets;
51        QWidgetList myAuthWidgets;
52};
53
54#endif
Note: See TracBrowser for help on using the repository browser.