00001 #ifndef _AUTHWIDGET_H 00002 #define _AUTHWIDGET_H 00003 00004 #include <qwidget.h> 00005 00006 class ScriptWidget; 00007 class PPPData; 00008 class QCheckBox; 00009 class QComboBox; 00010 class QLabel; 00011 class QGridLayout; 00012 class QLineEdit; 00013 class QToolButton; 00014 00015 class AuthWidget : public QWidget { 00016 Q_OBJECT 00017 public: 00018 AuthWidget(PPPData*, QWidget *parent=0, bool isnewaccount = true, const char *name=0 ); 00019 ~AuthWidget() {}; 00020 00021 public slots: 00022 bool check(); 00023 void save(); 00024 00025 private slots: 00026 void authChanged(const QString&); 00027 void showUsernamePassword(bool); 00028 void showScriptWindow(bool); 00029 void toggleEchoMode(bool); 00030 00031 private: 00032 ScriptWidget *scriptWidget; 00033 PPPData *_pppdata; 00034 bool isNewAccount; 00035 QGridLayout *layout; 00036 QComboBox *auth; 00037 QLabel *auth_l; 00038 QLabel *user_l; 00039 QLineEdit *userName; 00040 QLabel *pw_l; 00041 QLineEdit *passWord; 00042 QToolButton *hidePw; 00043 QCheckBox *store_password; 00044 }; 00045 00046 #endif
1.4.2