Interface Class Reference
A Interface represents a physical device. More...
#include <interface.h>
Inheritance diagram for Interface:


Public Slots | |
| virtual bool | refresh () |
| Try to refresh the information about the interface. | |
| virtual void | start () |
| Try to start the interface. | |
| virtual void | stop () |
| Try to stop the interface. | |
| virtual void | restart () |
| Try to restart the interface. | |
Signals | |
| void | updateInterface (Interface *i) |
| void | updateMessage (const QString &message) |
Public Member Functions | |
| Interface (QObject *parent=0, const char *name="unknown", bool status=false) | |
| QString | getInterfaceName () const |
| void | setInterfaceName (const QString &n) |
| bool | getStatus () const |
| void | setStatus (bool newStatus) |
| Set status. | |
| bool | isAttached () const |
| void | setAttached (bool isAttached=false) |
| Set if attached or not (802.11 card pulled out for example). | |
| QString | getHardwareName () const |
| void | setHardwareName (const QString &name="Unknown") |
| Set Hardware name. | |
| Module * | getModuleOwner () const |
| void | setModuleOwner (Module *owner=NULL) |
| Set Module owner. | |
| QString | getMacAddress () const |
| QString | getIp () const |
| QString | getSubnetMask () const |
| QString | getBroadcast () const |
| bool | isDhcp () const |
| QString | getDhcpServerIp () const |
| QString | getLeaseObtained () const |
| QString | getLeaseExpires () const |
Protected Attributes | |
| QString | hardwareName |
| Module * | moduleOwner |
| bool | status |
| bool | attached |
| bool | dhcp |
| QString | dhcpServerIp |
| QString | leaseObtained |
| QString | leaseExpires |
| QString | macAddress |
| QString | ip |
| QString | broadcast |
| QString | subnetMask |
Detailed Description
A Interface represents a physical device.You can inherit it and create also virtual devices. Like saved ppp dial ups or vpn. Interface is used for representing your interface to the User and its actions.
Definition at line 16 of file interface.h.
Member Function Documentation
|
|
Set status.
Definition at line 28 of file interface.cpp. References refresh(). |
|
|
Set if attached or not (802.11 card pulled out for example).
Definition at line 40 of file interface.cpp. |
|
|
Set Hardware name.
Definition at line 50 of file interface.cpp. |
|
|
Set Module owner.
Definition at line 60 of file interface.cpp. |
|
|
Try to refresh the information about the interface. First call ifconfig, then check the dhcp-info file
Definition at line 122 of file interface.cpp. References QDateTime::addSecs(), QString::arg(), QFile::close(), QString::contains(), QFile::exists(), QDir::exists(), QString::find(), QString::latin1(), QString::length(), QString::mid(), QFile::open(), QTextStream::readLine(), QFile::remove(), QTextStream::setDevice(), QFile::setName(), QString::toInt(), and QDateTime::toString(). Referenced by InterfaceSetupImp::saveChanges(), setStatus(), start(), and stop(). |
|
|
Try to start the interface.
Definition at line 69 of file interface.cpp. References refresh(). Referenced by restart(). |
|
|
Try to stop the interface.
Definition at line 91 of file interface.cpp. References refresh(). Referenced by restart(). |
|
|
Try to restart the interface.
Definition at line 112 of file interface.cpp. |
The documentation for this class was generated from the following files:
