Qt API | Qtopia API | Qtopia Documentation | ![]() |
The NetworkInterface class allows plugin network services. More...
#include <qtopia/networkinterface.h>
The Qtopia Network facilities are defined by the configurations in the Qtopia etc/network/ directory. For example, the generic DialUp.conf configuration looks like this (the actual file is encoded in UTF-8):
[Info] Name = Dial-up - PPP Type = dialup Layer = TCP/IP [Help] Help = For dial-up connections through a modem and plain telephone line. Help[de] = Für Wählverbindungen mit Modem und Telefon. [Properties] Auto = 0 Device = ppp CardType = serial
To add a network service that is merely a specific dialup service, you need only provide another configuration files, for example:
[Info] Name = SuperNet ISP Type = dialup Layer = TCP/IP [Help] Help = Connect to your local SuperNet(tm) point-of-presence. [Properties] Auto = 0 Device = ppp CardType = serial password = secret phone = 555555555 speed = 115200 username = customer
However, to add a service beyond the scope of the existing services, you can define your own network service Type, by creating a NetworkInterface plugin.
By default, 0 is returned (no state widget).
By default, the Properties.CardType value in cfg is returned.
Performs any system state changes required for the network service defined by cfg. This is called only when the service is first added by the user.
By default, the Properties.Device value in cfg is returned.
Prompts the user to manipulate the properties of the network service defined by cfg, using a modal dialog which has the given parent. Returns TRUE on success, of FALSE if the user cancels the interaction.
By default, the device() is searched for in /proc/net/dev.
By default, the cardType() is searched for in the system pcmcia tables.
Reverts any system state changes made in create().
Starts the network service defined by cfg, returning TRUE on success.
There is no default implementation.
Starts the network service defined by cfg, using the given password, returning TRUE on success.
By default, the start() method without a password is called.
Stops the network service defined by cfg, returning TRUE on success.
There is no default implementation.
This file is part of the Qtopia , copyright © 1995-2002 Trolltech, all rights reserved.
Copyright © 2001-2002 Trolltech | Trademarks | Qtopia version 1.7.0
|