Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

KPPPWidget Class Reference

#include </home/clem/local/src/opie/noncore/settings/networksettings/ppp/kpppwidget.h>

Collaboration diagram for KPPPWidget:

Collaboration graph
[legend]
List of all members.

Public Slots

void disconnect ()
void log_window_toggled (bool on)

Signals

void begin_connect ()
void cmdl_start ()

Public Member Functions

 KPPPWidget (PPPData *, Interface *, QWidget *parent=0, const char *name=0, bool modal=false, WFlags fl=0)
 ~KPPPWidget ()
void setPW_Edit (const QString &)

Public Attributes

QCheckBox * log
bool connected
QString con_speed
ConnectWidgetcon
ConWindowcon_win
QPushButton * quit_b

Private Slots

void newdefaultaccount (int)
void beginConnect ()
void quitbutton ()
void usernameChanged (const QString &)
void passwordChanged (const QString &)
void enterPressedInID ()
void enterPressedInPW ()
void saveMyself ()
void shutDown ()

Private Member Functions

void interruptConnection ()
void sigChld ()
void sigPPPDDied ()
QString encodeWord (const QString &s)
void showNews ()

Private Attributes

QString ruleset_load_errmsg
PPPData_pppdata
QPushButton * setup_b
QFrame * fline
QFrame * fline1
QPushButton * connect_b
QComboBox * connectto_c
QLabel * ID_Label
QLabel * PW_Label
QLineEdit * ID_Edit
QLineEdit * PW_Edit
QLabel * label1
QLabel * label2
QLabel * label3
QLabel * label4
QLabel * label5
QLabel * label6
QLabel * radio_label

Constructor & Destructor Documentation

KPPPWidget::KPPPWidget PPPData ,
Interface ,
QWidget *  parent = 0,
const char *  name = 0,
bool  modal = false,
WFlags  fl = 0
 

Definition at line 69 of file kpppwidget.cpp.

References _pppdata, PPPData::accname(), add, begin_connect(), beginConnect(), cmdl_start(), con, con_win, connect_b, connectto_c, enterPressedInID(), enterPressedInPW(), PPPData::get_show_log_window(), Interface::getHardwareName(), Interface::getInterfaceName(), ID_Edit, ID_Label, label1, log, log_window_toggled(), newdefaultaccount(), odebug, oendl, PW_Edit, PW_Label, qApp, quit_b, quitbutton(), runTests(), saveMyself(), PPPData::setAccount(), PPPData::setModemDevice(), setup_b, showNews(), shutDown(), TEST_CRITICAL, and tr.

KPPPWidget::~KPPPWidget  ) 
 

Definition at line 298 of file kpppwidget.cpp.


Member Function Documentation

void KPPPWidget::begin_connect  )  [signal]
 

Referenced by beginConnect(), and KPPPWidget().

void KPPPWidget::beginConnect  )  [private, slot]
 

Definition at line 539 of file kpppwidget.cpp.

References _pppdata, PPPData::accname(), AUTH_CHAP, AUTH_PAP, AUTH_PAPCHAP, PPPData::authMethod(), begin_connect(), encodeWord(), KMessageBox::error(), QFileInfo::exists(), ID_Edit, QFileInfo::isExecutable(), PPPData::modemDevice(), PAP_AUTH_FILE, PPPData::password(), PPPData::phonenumber(), pppdPath(), s, PPPData::setPassword(), PPPData::storedPassword(), PPPData::storedUsername(), Opie::Internal::string(), tr, and warning().

Referenced by KPPPWidget().

void KPPPWidget::cmdl_start  )  [signal]
 

Referenced by KPPPWidget(), and sigPPPDDied().

void KPPPWidget::disconnect  )  [slot]
 

Definition at line 624 of file kpppwidget.cpp.

References _pppdata, AUTH_CHAP, AUTH_PAP, PPPData::command_before_disconnect(), PPPData::command_on_disconnect(), con, con_win, execute_command, qApp, quit_b, removedns(), ConnectWidget::setMsg(), ConWindow::stopClock(), and tr.

Referenced by interruptConnection().

QString KPPPWidget::encodeWord const QString s  )  [private]
 

pppd's getword() function knows about escape characters. If we write the username and password to the secrets file we'll therefore have to escape back slashes.

Definition at line 799 of file kpppwidget.cpp.

References QString::replace().

Referenced by beginConnect(), and sigPPPDDied().

void KPPPWidget::enterPressedInID  )  [private, slot]
 

Definition at line 336 of file kpppwidget.cpp.

References PW_Edit.

Referenced by KPPPWidget().

void KPPPWidget::enterPressedInPW  )  [private, slot]
 

Definition at line 341 of file kpppwidget.cpp.

References connect_b.

Referenced by KPPPWidget().

void KPPPWidget::interruptConnection  )  [private]
 

Definition at line 412 of file kpppwidget.cpp.

References _pppdata, ConnectWidget::cancelbutton(), con, disconnect(), and PPPData::pppdRunning().

Referenced by shutDown().

void KPPPWidget::log_window_toggled bool  on  )  [slot]
 

Definition at line 355 of file kpppwidget.cpp.

References _pppdata, and PPPData::set_show_log_window().

Referenced by KPPPWidget().

void KPPPWidget::newdefaultaccount int   )  [private, slot]
 

Definition at line 529 of file kpppwidget.cpp.

References _pppdata, connectto_c, ID_Edit, PW_Edit, PPPData::save(), PPPData::setDefaultAccount(), PPPData::storedPassword(), and PPPData::storedUsername().

Referenced by KPPPWidget().

void KPPPWidget::passwordChanged const QString  )  [private, slot]
 

Definition at line 771 of file kpppwidget.cpp.

References _pppdata, PW_Edit, PPPData::setStoredPassword(), and PPPData::storePassword().

void KPPPWidget::quitbutton  )  [private, slot]
 

Definition at line 681 of file kpppwidget.cpp.

References _pppdata, PPPData::accname(), PPPData::command_on_disconnect(), execute_command, PPPData::pppdRunning(), qApp, removedns(), PPPData::save(), PPPData::setStoredPassword(), PPPData::storePassword(), tr, and warning().

Referenced by KPPPWidget().

void KPPPWidget::saveMyself  )  [private, slot]
 

Definition at line 346 of file kpppwidget.cpp.

References _pppdata, and PPPData::save().

Referenced by KPPPWidget(), and shutDown().

void KPPPWidget::setPW_Edit const QString  ) 
 

Definition at line 780 of file kpppwidget.cpp.

References PW_Edit.

void KPPPWidget::showNews  )  [private]
 

Definition at line 810 of file kpppwidget.cpp.

References _pppdata, add, BarIcon(), bbox(), GENERAL_GRP, l, PPPData::readNumConfig(), PPPData::save(), tr, and PPPData::writeConfig().

Referenced by KPPPWidget().

void KPPPWidget::shutDown  )  [private, slot]
 

Definition at line 350 of file kpppwidget.cpp.

References interruptConnection(), and saveMyself().

Referenced by KPPPWidget().

void KPPPWidget::sigChld  )  [private]
 

void KPPPWidget::sigPPPDDied  )  [private]
 

Definition at line 425 of file kpppwidget.cpp.

References _pppdata, AUTH_CHAP, AUTH_PAP, AUTH_PAPCHAP, PPPData::authMethod(), PPPData::automatic_redial(), cmdl_start(), PPPData::command_on_disconnect(), con, con_win, E_IF_TIMEOUT, E_PPPD_DIED, encodeWord(), execute_command, odebug, oendl, PPPData::password(), ConnectWidget::pppdDied(), PPPData::pppdError(), PPPData::pppdRunning(), quit_b, removedns(), PPPData::setpppdError(), PPPData::setpppdRunning(), ConWindow::stopClock(), PPPData::storedUsername(), and tr.

void KPPPWidget::usernameChanged const QString  )  [private, slot]
 

Definition at line 765 of file kpppwidget.cpp.

References _pppdata, ID_Edit, and PPPData::setStoredUsername().


Member Data Documentation

PPPData* KPPPWidget::_pppdata [private]
 

Definition at line 90 of file kpppwidget.h.

Referenced by beginConnect(), disconnect(), interruptConnection(), KPPPWidget(), log_window_toggled(), newdefaultaccount(), passwordChanged(), quitbutton(), saveMyself(), showNews(), sigPPPDDied(), and usernameChanged().

ConnectWidget* KPPPWidget::con
 

Definition at line 74 of file kpppwidget.h.

Referenced by disconnect(), interruptConnection(), KPPPWidget(), and sigPPPDDied().

QString KPPPWidget::con_speed
 

Definition at line 73 of file kpppwidget.h.

ConWindow* KPPPWidget::con_win
 

Definition at line 75 of file kpppwidget.h.

Referenced by disconnect(), KPPPWidget(), and sigPPPDDied().

QPushButton* KPPPWidget::connect_b [private]
 

Definition at line 94 of file kpppwidget.h.

Referenced by enterPressedInPW(), and KPPPWidget().

bool KPPPWidget::connected
 

Definition at line 72 of file kpppwidget.h.

QComboBox* KPPPWidget::connectto_c [private]
 

Definition at line 95 of file kpppwidget.h.

Referenced by KPPPWidget(), and newdefaultaccount().

QFrame* KPPPWidget::fline [private]
 

Definition at line 92 of file kpppwidget.h.

QFrame* KPPPWidget::fline1 [private]
 

Definition at line 93 of file kpppwidget.h.

QLineEdit* KPPPWidget::ID_Edit [private]
 

Definition at line 98 of file kpppwidget.h.

Referenced by beginConnect(), KPPPWidget(), newdefaultaccount(), and usernameChanged().

QLabel* KPPPWidget::ID_Label [private]
 

Definition at line 96 of file kpppwidget.h.

Referenced by KPPPWidget().

QLabel* KPPPWidget::label1 [private]
 

Definition at line 100 of file kpppwidget.h.

Referenced by KPPPWidget().

QLabel* KPPPWidget::label2 [private]
 

Definition at line 101 of file kpppwidget.h.

QLabel* KPPPWidget::label3 [private]
 

Definition at line 102 of file kpppwidget.h.

QLabel* KPPPWidget::label4 [private]
 

Definition at line 103 of file kpppwidget.h.

QLabel* KPPPWidget::label5 [private]
 

Definition at line 104 of file kpppwidget.h.

QLabel* KPPPWidget::label6 [private]
 

Definition at line 105 of file kpppwidget.h.

QCheckBox* KPPPWidget::log
 

Definition at line 71 of file kpppwidget.h.

Referenced by KPPPWidget().

QLineEdit* KPPPWidget::PW_Edit [private]
 

Definition at line 99 of file kpppwidget.h.

Referenced by enterPressedInID(), KPPPWidget(), newdefaultaccount(), passwordChanged(), and setPW_Edit().

QLabel* KPPPWidget::PW_Label [private]
 

Definition at line 97 of file kpppwidget.h.

Referenced by KPPPWidget().

QPushButton* KPPPWidget::quit_b
 

Definition at line 78 of file kpppwidget.h.

Referenced by disconnect(), KPPPWidget(), and sigPPPDDied().

QLabel* KPPPWidget::radio_label [private]
 

Definition at line 106 of file kpppwidget.h.

QString KPPPWidget::ruleset_load_errmsg [private]
 

Definition at line 89 of file kpppwidget.h.

QPushButton* KPPPWidget::setup_b [private]
 

Definition at line 91 of file kpppwidget.h.

Referenced by KPPPWidget().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:37:57 2005 for OPIE by  doxygen 1.4.2