00001 /* 00002 * 00003 * kPPP: A pppd front end for the KDE project 00004 * 00005 * $Id: kpppwidget.h,v 1.5 2003/08/09 17:14:55 kergoth Exp $ 00006 * 00007 * Copyright (C) 1997 Bernd Johannes Wuebben 00008 * wuebben@math.cornell.edu 00009 * 00010 * Copyright (C) 1998-2002 Harri Porten <porten@kde.org> 00011 * 00012 * This program is free software; you can redistribute it and/or 00013 * modify it under the terms of the GNU Library General Public 00014 * License as published by the Free Software Foundation; either 00015 * version 2 of the License, or (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00020 * Library General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU Library General Public 00023 * License along with this program; if not, write to the Free 00024 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00025 */ 00026 00027 #ifndef __KPPPWIDGET_H__ 00028 #define __KPPPWIDGET_H__ 00029 00030 #include <qstring.h> 00031 00032 #include "accounts.h" 00033 #include "connect.h" 00034 #include "conwindow.h" 00035 00036 class QPushButton; 00037 class Interface; 00038 class PPPData; 00039 00040 class KPPPWidget : public QDialog { 00041 Q_OBJECT 00042 public: 00043 00044 KPPPWidget(PPPData*, Interface*, QWidget *parent=0, const char *name=0, bool modal = false, WFlags fl = 0 ); 00045 ~KPPPWidget(); 00046 00047 void setPW_Edit(const QString &); 00048 00049 00050 private slots: 00051 void newdefaultaccount(int); 00052 void beginConnect(); 00053 void quitbutton(); 00054 void usernameChanged(const QString &); 00055 void passwordChanged(const QString &); 00056 void enterPressedInID(); 00057 void enterPressedInPW(); 00058 void saveMyself(); 00059 void shutDown(); 00060 00061 00062 public slots: 00063 void disconnect(); 00064 void log_window_toggled(bool on); 00065 00066 signals: 00067 void begin_connect(); 00068 void cmdl_start(); 00069 00070 public: 00071 QCheckBox *log; 00072 bool connected; 00073 QString con_speed; 00074 ConnectWidget *con; 00075 ConWindow *con_win; 00076 // PPPStatsDlg *statdlg; 00077 // AccountingBase *acct; 00078 QPushButton *quit_b; 00079 //PPPStats *stats; 00080 00081 private: 00082 // void prepareSetupDialog(); 00083 void interruptConnection(); 00084 void sigChld(); 00085 void sigPPPDDied(); 00086 QString encodeWord(const QString &s); 00087 void showNews (); 00088 00089 QString ruleset_load_errmsg; 00090 PPPData *_pppdata; 00091 QPushButton *setup_b; 00092 QFrame *fline; 00093 QFrame *fline1; 00094 QPushButton *connect_b; 00095 QComboBox *connectto_c; 00096 QLabel *ID_Label; 00097 QLabel *PW_Label; 00098 QLineEdit *ID_Edit; 00099 QLineEdit *PW_Edit; 00100 QLabel *label1; 00101 QLabel *label2; 00102 QLabel *label3; 00103 QLabel *label4; 00104 QLabel *label5; 00105 QLabel *label6; 00106 QLabel *radio_label; 00107 00108 /* QString m_strCmdlAccount; */ 00109 /* bool m_bQuitOnDisconnect; */ 00110 /* bool m_bCmdlAccount; */ 00111 }; 00112 00113 00114 #endif 00115
1.4.2