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

ConnectWidget Class Reference

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

Collaboration diagram for ConnectWidget:

Collaboration graph
[legend]
List of all members.

Public Slots

void init ()
void preinit ()
void script_timed_out ()
void if_waiting_timed_out ()
void cancelbutton ()

Signals

void if_waiting_signal ()
void debugMessage (const QString &)
void toggleDebugWindow ()
void closeDebugWindow ()
void debugPutChar (unsigned char)
void startAccounting ()
void stopAccounting ()

Public Member Functions

 ConnectWidget (InterfacePPP *, QWidget *parent, const char *name)
 ~ConnectWidget ()
void set_con_speed_string ()
void setMsg (const QString &)
void pppdDied ()

Public Attributes

QString myreadbuffer
QPushButton * debug
int main_timer_ID

Protected Member Functions

void timerEvent (QTimerEvent *)
void closeEvent (QCloseEvent *e)

Private Slots

void readChar (unsigned char)
void pause ()
void if_waiting_slot ()
void refresh ()

Private Member Functions

bool execppp ()
void writeline (const QString &)
void checkBuffers ()
void setExpect (const QString &)
void setScan (const QString &)

Private Attributes

int vmain
int substate
int scriptindex
QString scriptCommand
QString scriptArgument
QStringListcomlist
QStringListarglist
int loopnest
int loopstartindex [MAXLOOPNEST]
bool loopend
QString loopstr [MAXLOOPNEST]
bool semaphore
QTimer * inittimer
QTimer * timeout_timer
bool expecting
QString expectstr
QString readbuffer
QString scanvar
QString scanstr
QString scanbuffer
bool scanning
bool pausing
PWEntryprompt
int scriptTimeout
QTimer * pausetimer
QTimer * if_timer
QTimer * if_timeout_timer
QTimer * m_refreshTimer
QLabel * messg
QPushButton * cancel
bool firstrunID
bool firstrunPW
unsigned int dialnumber
InterfacePPP_ifaceppp

Constructor & Destructor Documentation

ConnectWidget::ConnectWidget InterfacePPP ,
QWidget *  parent,
const char *  name
 

Definition at line 81 of file connect.cpp.

References _ifaceppp, cancel, cancelbutton(), debug, Interface::getStatus(), if_timeout_timer, if_timer, if_waiting_signal(), if_waiting_slot(), if_waiting_timed_out(), init(), inittimer, messg, modified_hostname, pause(), pausetimer, prompt, qApp, script_timed_out(), timeout_timer, toggleDebugWindow(), and tr.

ConnectWidget::~ConnectWidget  ) 
 

Definition at line 169 of file connect.cpp.


Member Function Documentation

void ConnectWidget::cancelbutton  )  [slot]
 

Definition at line 975 of file connect.cpp.

References _ifaceppp, AUTH_CHAP, AUTH_PAP, PWEntry::hide(), if_timeout_timer, if_timer, main_timer_ID, messg, InterfacePPP::modem(), prompt, qApp, refresh(), removedns(), PWEntry::setConsumed(), timeout_timer, and tr.

Referenced by closeEvent(), ConnectWidget(), KPPPWidget::interruptConnection(), and timerEvent().

void ConnectWidget::checkBuffers  )  [private]
 

Definition at line 921 of file connect.cpp.

References QString::contains(), debugMessage(), expecting, expectstr, QString::find(), QString::length(), loopend, loopnest, loopstartindex, loopstr, QString::mid(), readbuffer, QString::remove(), QString::right(), scanbuffer, scanning, scanstr, scanvar, scriptindex, QString::stripWhiteSpace(), timerEvent(), and tr.

Referenced by readChar(), and setExpect().

void ConnectWidget::closeDebugWindow  )  [signal]
 

Referenced by if_waiting_slot().

void ConnectWidget::closeEvent QCloseEvent *  e  )  [protected]
 

Definition at line 1284 of file connect.cpp.

References cancelbutton().

void ConnectWidget::debugMessage const QString  )  [signal]
 

Referenced by checkBuffers(), if_waiting_slot(), init(), setExpect(), setScan(), and timerEvent().

void ConnectWidget::debugPutChar unsigned  char  )  [signal]
 

Referenced by readChar(), and timerEvent().

bool ConnectWidget::execppp  )  [private]
 

Definition at line 1183 of file connect.cpp.

References _ifaceppp, arglist, AUTH_CHAP, AUTH_PAP, AUTH_PAPCHAP, QValueList< T >::begin(), InterfacePPP::data(), QValueList< T >::end(), PPPData::FlowHardware, PPPData::FlowNone, QString::isEmpty(), QString::latin1(), QString::length(), MAX_CMDLEN, InterfacePPP::modem(), oendl, owarn, and qApp.

Referenced by timerEvent().

void ConnectWidget::if_waiting_signal  )  [signal]
 

Referenced by ConnectWidget(), and timerEvent().

void ConnectWidget::if_waiting_slot  )  [private, slot]
 

Definition at line 1091 of file connect.cpp.

References _ifaceppp, addpeerdns(), AUTH_CHAP, AUTH_PAP, auto_hostname(), closeDebugWindow(), InterfacePPP::data(), debugMessage(), execute_command, if_timeout_timer, if_timer, m_refreshTimer, messg, InterfacePPP::modem(), qApp, refresh(), set_con_speed_string(), Interface::setStatus(), and tr.

Referenced by ConnectWidget().

void ConnectWidget::if_waiting_timed_out  )  [slot]
 

Definition at line 1066 of file connect.cpp.

References _ifaceppp, InterfacePPP::data(), E_IF_TIMEOUT, if_timeout_timer, if_timer, InterfacePPP::modem(), odebug, oendl, and stopAccounting().

Referenced by ConnectWidget().

void ConnectWidget::init  )  [slot]
 

Definition at line 181 of file connect.cpp.

References _ifaceppp, arglist, comlist, InterfacePPP::data(), debugMessage(), dialnumber, execute_command, expecting, firstrunID, firstrunPW, inittimer, main_timer_ID, messg, InterfacePPP::modem(), myreadbuffer, pausing, qApp, readChar(), scanning, scanvar, scriptindex, semaphore, substate, timeout_timer, tr, and vmain.

Referenced by ConnectWidget().

void ConnectWidget::pause  )  [private, slot]
 

Definition at line 969 of file connect.cpp.

References pausetimer, and pausing.

Referenced by ConnectWidget().

void ConnectWidget::pppdDied  ) 
 

Definition at line 1085 of file connect.cpp.

References if_timeout_timer, and if_timer.

Referenced by KPPPWidget::sigPPPDDied().

void ConnectWidget::preinit  )  [slot]
 

Definition at line 173 of file connect.cpp.

References inittimer, messg, and tr.

void ConnectWidget::readChar unsigned  char  )  [private, slot]
 

Definition at line 902 of file connect.cpp.

References checkBuffers(), debugPutChar(), myreadbuffer, readbuffer, scanbuffer, scanning, and semaphore.

Referenced by init().

void ConnectWidget::refresh  )  [private, slot]
 

Definition at line 1173 of file connect.cpp.

References _ifaceppp, Interface::getStatus(), messg, InterfacePPP::refresh(), and tr.

Referenced by cancelbutton(), and if_waiting_slot().

void ConnectWidget::script_timed_out  )  [slot]
 

Definition at line 1021 of file connect.cpp.

References _ifaceppp, PWEntry::hide(), messg, InterfacePPP::modem(), prompt, PWEntry::setConsumed(), stopAccounting(), substate, timeout_timer, tr, and vmain.

Referenced by ConnectWidget().

void ConnectWidget::set_con_speed_string  ) 
 

Definition at line 892 of file connect.cpp.

Referenced by if_waiting_slot().

void ConnectWidget::setExpect const QString  )  [private]
 

Definition at line 1053 of file connect.cpp.

References checkBuffers(), debugMessage(), expecting, expectstr, QString::replace(), and tr.

Referenced by timerEvent().

void ConnectWidget::setMsg const QString  ) 
 

Definition at line 1290 of file connect.cpp.

References messg.

Referenced by KPPPWidget::disconnect().

void ConnectWidget::setScan const QString  )  [private]
 

Definition at line 1043 of file connect.cpp.

References debugMessage(), scanbuffer, scanning, scanstr, and tr.

Referenced by timerEvent().

void ConnectWidget::startAccounting  )  [signal]
 

Referenced by timerEvent().

void ConnectWidget::stopAccounting  )  [signal]
 

Referenced by if_waiting_timed_out(), script_timed_out(), and timerEvent().

void ConnectWidget::timerEvent QTimerEvent *   )  [protected]
 

Definition at line 270 of file connect.cpp.

References _ifaceppp, adddns(), QString::arg(), arglist, assert, QValueList< T >::at(), AUTH_TERMINAL, cancelbutton(), comlist, PWEntry::Consumed(), QString::contains(), QValueList< T >::count(), InterfacePPP::data(), debugMessage(), debugPutChar(), dialnumber, execppp(), expecting, QString::find(), firstrunID, firstrunPW, i, if_timeout_timer, if_waiting_signal(), QString::insert(), QString::isEmpty(), QString::length(), loopend, loopnest, loopstartindex, loopstr, QString::lower(), main_timer_ID, MAXLOOPNEST, messg, InterfacePPP::modem(), MODEM_TONEDURATION, myreadbuffer, QString::number(), PPPData::NumInitStrings, odebug, oendl, pausetimer, pausing, prompt, qApp, readbuffer, QString::remove(), QString::replace(), scanning, scanvar, scriptArgument, scriptCommand, scriptindex, scriptTimeout, semaphore, PWEntry::setConsumed(), PWEntry::setEchoModeNormal(), PWEntry::setEchoModePassword(), setExpect(), PWEntry::setPrompt(), setScan(), PWEntry::show(), startAccounting(), stopAccounting(), substate, PWEntry::text(), timeout_timer, QString::toInt(), tr, vmain, and writeline().

Referenced by checkBuffers().

void ConnectWidget::toggleDebugWindow  )  [signal]
 

Referenced by ConnectWidget().

void ConnectWidget::writeline const QString  )  [private]
 

Definition at line 1294 of file connect.cpp.

References _ifaceppp, and InterfacePPP::modem().

Referenced by timerEvent().


Member Data Documentation

InterfacePPP* ConnectWidget::_ifaceppp [private]
 

Definition at line 141 of file connect.h.

Referenced by cancelbutton(), ConnectWidget(), execppp(), if_waiting_slot(), if_waiting_timed_out(), init(), refresh(), script_timed_out(), timerEvent(), and writeline().

QStringList * ConnectWidget::arglist [private]
 

Definition at line 95 of file connect.h.

Referenced by execppp(), init(), and timerEvent().

QPushButton* ConnectWidget::cancel [private]
 

Definition at line 134 of file connect.h.

Referenced by ConnectWidget().

QStringList* ConnectWidget::comlist [private]
 

Definition at line 95 of file connect.h.

Referenced by init(), and timerEvent().

QPushButton* ConnectWidget::debug
 

Definition at line 87 of file connect.h.

Referenced by ConnectWidget().

unsigned int ConnectWidget::dialnumber [private]
 

Definition at line 139 of file connect.h.

Referenced by init(), and timerEvent().

bool ConnectWidget::expecting [private]
 

Definition at line 112 of file connect.h.

Referenced by checkBuffers(), init(), setExpect(), and timerEvent().

QString ConnectWidget::expectstr [private]
 

Definition at line 113 of file connect.h.

Referenced by checkBuffers(), and setExpect().

bool ConnectWidget::firstrunID [private]
 

Definition at line 136 of file connect.h.

Referenced by init(), and timerEvent().

bool ConnectWidget::firstrunPW [private]
 

Definition at line 137 of file connect.h.

Referenced by init(), and timerEvent().

QTimer* ConnectWidget::if_timeout_timer [private]
 

Definition at line 130 of file connect.h.

Referenced by cancelbutton(), ConnectWidget(), if_waiting_slot(), if_waiting_timed_out(), pppdDied(), and timerEvent().

QTimer* ConnectWidget::if_timer [private]
 

Definition at line 129 of file connect.h.

Referenced by cancelbutton(), ConnectWidget(), if_waiting_slot(), if_waiting_timed_out(), and pppdDied().

QTimer* ConnectWidget::inittimer [private]
 

Definition at line 104 of file connect.h.

Referenced by ConnectWidget(), init(), and preinit().

bool ConnectWidget::loopend [private]
 

Definition at line 100 of file connect.h.

Referenced by checkBuffers(), and timerEvent().

int ConnectWidget::loopnest [private]
 

Definition at line 98 of file connect.h.

Referenced by checkBuffers(), and timerEvent().

int ConnectWidget::loopstartindex[MAXLOOPNEST] [private]
 

Definition at line 99 of file connect.h.

Referenced by checkBuffers(), and timerEvent().

QString ConnectWidget::loopstr[MAXLOOPNEST] [private]
 

Definition at line 101 of file connect.h.

Referenced by checkBuffers(), and timerEvent().

QTimer* ConnectWidget::m_refreshTimer [private]
 

Definition at line 131 of file connect.h.

Referenced by if_waiting_slot().

int ConnectWidget::main_timer_ID
 

Definition at line 88 of file connect.h.

Referenced by cancelbutton(), init(), and timerEvent().

QLabel* ConnectWidget::messg [private]
 

Definition at line 133 of file connect.h.

Referenced by cancelbutton(), ConnectWidget(), if_waiting_slot(), init(), preinit(), refresh(), script_timed_out(), setMsg(), and timerEvent().

QString ConnectWidget::myreadbuffer
 

Definition at line 84 of file connect.h.

Referenced by init(), readChar(), and timerEvent().

QTimer* ConnectWidget::pausetimer [private]
 

Definition at line 128 of file connect.h.

Referenced by ConnectWidget(), pause(), and timerEvent().

bool ConnectWidget::pausing [private]
 

Definition at line 123 of file connect.h.

Referenced by init(), pause(), and timerEvent().

PWEntry* ConnectWidget::prompt [private]
 

Definition at line 124 of file connect.h.

Referenced by cancelbutton(), ConnectWidget(), script_timed_out(), and timerEvent().

QString ConnectWidget::readbuffer [private]
 

Definition at line 115 of file connect.h.

Referenced by checkBuffers(), readChar(), and timerEvent().

QString ConnectWidget::scanbuffer [private]
 

Definition at line 120 of file connect.h.

Referenced by checkBuffers(), readChar(), and setScan().

bool ConnectWidget::scanning [private]
 

Definition at line 121 of file connect.h.

Referenced by checkBuffers(), init(), readChar(), setScan(), and timerEvent().

QString ConnectWidget::scanstr [private]
 

Definition at line 119 of file connect.h.

Referenced by checkBuffers(), and setScan().

QString ConnectWidget::scanvar [private]
 

Definition at line 118 of file connect.h.

Referenced by checkBuffers(), init(), and timerEvent().

QString ConnectWidget::scriptArgument [private]
 

Definition at line 94 of file connect.h.

Referenced by timerEvent().

QString ConnectWidget::scriptCommand [private]
 

Definition at line 94 of file connect.h.

Referenced by timerEvent().

int ConnectWidget::scriptindex [private]
 

Definition at line 93 of file connect.h.

Referenced by checkBuffers(), init(), and timerEvent().

int ConnectWidget::scriptTimeout [private]
 

Definition at line 127 of file connect.h.

Referenced by timerEvent().

bool ConnectWidget::semaphore [private]
 

Definition at line 103 of file connect.h.

Referenced by init(), readChar(), and timerEvent().

int ConnectWidget::substate [private]
 

Definition at line 92 of file connect.h.

Referenced by init(), script_timed_out(), and timerEvent().

QTimer* ConnectWidget::timeout_timer [private]
 

Definition at line 106 of file connect.h.

Referenced by cancelbutton(), ConnectWidget(), init(), script_timed_out(), and timerEvent().

int ConnectWidget::vmain [private]
 

Definition at line 91 of file connect.h.

Referenced by init(), script_timed_out(), and timerEvent().


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