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

InterfacePPP Class Reference

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

Inheritance diagram for InterfacePPP:

Inheritance graph
[legend]
Collaboration diagram for InterfacePPP:

Collaboration graph
[legend]
List of all members.

Public Slots

virtual bool refresh ()
virtual void start ()
virtual void stop ()
void save ()
void setPPPDpid (pid_t)

Signals

void begin_connect ()
void hangup_now ()

Public Member Functions

 InterfacePPP (QObject *parent=0, const char *name="PPP", bool status=false)
PPPDatadata () const
Modemmodem () const
QString pppDev () const
pid_t pppPID () const

Private Attributes

Modem_modemPtr
PPPData_dataPtr

Constructor & Destructor Documentation

InterfacePPP::InterfacePPP QObject *  parent = 0,
const char *  name = "PPP",
bool  status = false
 

Definition at line 16 of file interfaceppp.cpp.

References odebug, and oendl.


Member Function Documentation

void InterfacePPP::begin_connect  )  [signal]
 

Referenced by start().

PPPData * InterfacePPP::data  )  const
 

Definition at line 24 of file interfaceppp.cpp.

References _dataPtr, Interface::getHardwareName(), Interface::getInterfaceName(), odebug, oendl, PPPData::setAccount(), and PPPData::setDevice().

Referenced by PPPConfigWidget::accept(), add_domain(), adddns(), addpeerdns(), auto_hostname(), ConnectWidget::execppp(), ConnectWidget::if_waiting_slot(), ConnectWidget::if_waiting_timed_out(), ConnectWidget::init(), modem(), ModemWidget2::modemcmdsbutton(), PPPConfigWidget::PPPConfigWidget(), PPPConfigWidget::reject(), save(), start(), and ConnectWidget::timerEvent().

void InterfacePPP::hangup_now  )  [signal]
 

Referenced by stop().

Modem * InterfacePPP::modem  )  const
 

Definition at line 35 of file interfaceppp.cpp.

References _modemPtr, data(), odebug, and oendl.

Referenced by add_domain(), adddns(), addpeerdns(), auto_hostname(), ConnectWidget::cancelbutton(), ConnectWidget::execppp(), ConnectWidget::if_waiting_slot(), ConnectWidget::if_waiting_timed_out(), ConnectWidget::init(), pppDev(), pppPID(), ModemWidget2::query_modem(), refresh(), removedns(), ConnectWidget::script_timed_out(), setPPPDpid(), start(), ConnectWidget::timerEvent(), and ConnectWidget::writeline().

QString InterfacePPP::pppDev  )  const
 

Definition at line 169 of file interfaceppp.cpp.

References modem().

Referenced by PPPModule::~PPPModule().

pid_t InterfacePPP::pppPID  )  const
 

Definition at line 172 of file interfaceppp.cpp.

References modem().

Referenced by PPPModule::~PPPModule().

bool InterfacePPP::refresh void   )  [virtual, slot]
 

Try to refresh the information about the interface. First call ifconfig, then check the dhcp-info file

Returns:
bool true if successful.

Reimplemented from Interface.

Definition at line 44 of file interfaceppp.cpp.

References Interface::getInterfaceName(), modem(), odebug, oendl, Interface::refresh(), Interface::setInterfaceName(), and Interface::updateInterface().

Referenced by ConnectWidget::refresh(), and stop().

void InterfacePPP::save  )  [slot]
 

Definition at line 164 of file interfaceppp.cpp.

References data(), and Interface::updateInterface().

Referenced by PPPConfigWidget::accept().

void InterfacePPP::setPPPDpid pid_t   )  [slot]
 

Definition at line 175 of file interfaceppp.cpp.

References modem(), and Interface::setStatus().

void InterfacePPP::start void   )  [virtual, slot]
 

Try to start the interface.

Reimplemented from Interface.

Definition at line 58 of file interfaceppp.cpp.

References AUTH_CHAP, AUTH_PAP, AUTH_PAPCHAP, begin_connect(), data(), PPPData::encodeWord(), QFileInfo::exists(), QFileInfo::isExecutable(), modem(), odebug, oendl, PAP_AUTH_FILE, password, pppdPath(), s, Opie::Internal::string(), text, tr, and warning().

void InterfacePPP::stop void   )  [virtual, slot]
 

Try to stop the interface.

Reimplemented from Interface.

Definition at line 153 of file interfaceppp.cpp.

References hangup_now(), odebug, oendl, refresh(), Interface::setStatus(), and Interface::status.


Member Data Documentation

PPPData* InterfacePPP::_dataPtr [mutable, private]
 

Definition at line 36 of file interfaceppp.h.

Referenced by data().

Modem* InterfacePPP::_modemPtr [mutable, private]
 

Definition at line 35 of file interfaceppp.h.

Referenced by modem().


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