QtopiaNetwork Class Reference
|
Constant | Value | Description |
---|---|---|
QtopiaNetwork::LAN | 0x00000001 | Ethernet based network. |
QtopiaNetwork::WirelessLAN | 0x00000002 | Wireless network. |
QtopiaNetwork::Dialup | 0x00000004 | The connection is established via a dial-up connection. |
QtopiaNetwork::GPRS | 0x00000008 | The connection is established via GPRS/UMTS/EDGE. |
QtopiaNetwork::Bluetooth | 0x00001000 | The network is based on Bluetooth. |
QtopiaNetwork::Hidden | 0x10000000 | This interface is hidden from the user. |
QtopiaNetwork::Custom | 0x20000000 | This network plugin must exactly match the network configuration. For more details see QtopiaNetworkFactoryIface::customID(). |
QtopiaNetwork::Any | 0x00000000 | A place holder for any arbitrary network type. |
These sub types are used in conjunction with QtopiaNetwork::GPRS and QtopiaNetwork::Dialup only:
Constant | Value | Description |
---|---|---|
QtopiaNetwork::PhoneModem | 0x00000010 | The network connection is established via the internal phone modem (this flag is defined for Cell module only). |
QtopiaNetwork::NamedModem | 0x00000020 | A serial network connection using a specific device such as /dev/ttyS0 is established. The device name is given in the configuration file. |
These sub types specify the type of the external device which is used to establish the connection.
Constant | Value | Description |
---|---|---|
QtopiaNetwork::PCMCIA | 0x00000040 | The network device is an attached PCMCIA card. |
These sub types are used in conjunction with QtopiaNetwork::Bluetooth only.
Constant | Value | Description |
---|---|---|
QtopiaNetwork::BluetoothDUN | 0X00002000 | The network connection is established via a local bluetooth device. The remote Bluetooth device acts as Internet gateway as specified by the Dial-up Networking Profile (DNP). |
QtopiaNetwork::BluetoothPAN | 0x00004000 | This value is reserved for future use in Qtopia. |
The Type type is a typedef for QFlags<TypeFlag>. It stores an OR combination of TypeFlag values.
Returns a list of all known Qt Extended network interface handles which match type. A handle uniquely identifies a Qt Extended network interfaces and is the absolute path to the configuration file that contains the settings for a particular QtopiaNetworkInterface. path specifies the directory where the lookup takes place.
Note that the lookup is independent of the state of an interface. It always returns all Qt Extended network interfaces which are online and offline.
If type is set to QtopiaNetwork::Any it returns all known NetworkInterfaces. If path is empty the lookup will take place in settingsDir().
Loads the appropriate network plug-in for the interface with handle; or 0 if no suitable plug-in can be found.
Only use this function if you intend to configure the returned QtopiaNetworkInterface via QtopiaNetworkInterface::configuration(). Any other use may trigger undesired behaviour whereby the loaded network interface instance may overshadow the instance created by the QtopiaNetworkServer. For more details see the QtopiaNetworkInterface general class documentation.
Returns true if any known network interface is online/connected. This can be used to check the general connectivity status of the Qt Extended environment. A device is considered to be online if it is in the state QtopiaNetwork::Up, QtopiaNetwork::Demand or QtopiaNetwork::Pending.
More detailed state updates on a per device base can be obtained by using QNetworkDevice and overal state change notifications across all network devices are provided by QNetworkState.
The network interface identified by handle becomes the new default gateway. If the device is connected to more than one network at a time this can be used to choose a preferred network for data transfers.
Returns the default directory for network interface configurations; $HOME/Applications/Network/config.
Stops all active network interfaces.
Starts that the network interface identified by handle. If the interface is running already this function does nothing.
options is used internally by some network plug-ins. It allows to specify additional parameters which are specific to particular network plug-ins. Otherwise this parameter can safely be ignored.
Stops the network interface identified by handle. If deleteIface is true the server will delete all configuration information associated to this interface.
Qt Extended will set the default gateway to an interface that is not equal to handle. This is useful if handle goes offline and the caller doesn't care what interface should become the new default gateway.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtextended4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com