summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/ppp/authwidget.h
blob: 33ec4c2149dbff5f6be03254df7a6816c5693936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _AUTHWIDGET_H
#define _AUTHWIDGET_H

#include <qwidget.h>

class ScriptWidget;
class PPPData;
class QCheckBox;
class QComboBox;
class QLabel;
class QGridLayout;
class QLineEdit;
class QToolButton;

class AuthWidget : public QWidget {
    Q_OBJECT
public:
    AuthWidget(PPPData*, QWidget *parent=0, bool isnewaccount = true, const char *name=0 );
    ~AuthWidget() {};

public slots:
    bool check();
    void save();

private slots:
    void authChanged(const QString&);
    void showUsernamePassword(bool); 
    void showScriptWindow(bool);
    void toggleEchoMode(bool);

private:
    ScriptWidget *scriptWidget;
    PPPData *_pppdata;
    bool isNewAccount;
    QGridLayout *layout;
    QComboBox *auth;
    QLabel *auth_l;
    QLabel *user_l;
    QLineEdit *userName;
    QLabel *pw_l;
    QLineEdit *passWord;
    QToolButton *hidePw;
    QCheckBox *store_password;
};

#endif