~ubuntu-branches/ubuntu/precise/transmission/precise

« back to all changes in this revision

Viewing changes to qt/session-dialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Leo Costela
  • Date: 2009-05-17 19:39:51 UTC
  • mto: (1.3.4 upstream) (2.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: james.westby@ubuntu.com-20090517193951-k8x15sqoxzf7cuyx
ImportĀ upstreamĀ versionĀ 1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
19
class Prefs;
 
20
class Session;
 
21
class QCheckBox;
 
22
class QLineEdit;
 
23
class QRadioButton;
 
24
class QSpinBox;
 
25
 
 
26
class 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