Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines
nsIIOService.idl File Reference
import "nsISupports.idl";
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

interface  nsIIOService
 nsIIOService provides a set of network utility functions. More...

Defines

#define NS_IOSERVICE_GOING_OFFLINE_TOPIC   "network:offline-about-to-go-offline"
 We send notifications through nsIObserverService with topic NS_IOSERVICE_GOING_OFFLINE_TOPIC and data NS_IOSERVICE_OFFLINE when 'offline' has changed from false to true, and we are about to shut down network services such as DNS.
#define NS_IOSERVICE_OFFLINE_STATUS_TOPIC   "network:offline-status-changed"
#define NS_IOSERVICE_OFFLINE   "offline"
#define NS_IOSERVICE_ONLINE   "online"

Define Documentation

#define NS_IOSERVICE_GOING_OFFLINE_TOPIC   "network:offline-about-to-go-offline"

We send notifications through nsIObserverService with topic NS_IOSERVICE_GOING_OFFLINE_TOPIC and data NS_IOSERVICE_OFFLINE when 'offline' has changed from false to true, and we are about to shut down network services such as DNS.

When those services have been shut down, we send a notification with topic NS_IOSERVICE_OFFLINE_STATUS_TOPIC and data NS_IOSERVICE_OFFLINE.

When 'offline' changes from true to false, then after network services have been restarted, we send a notification with topic NS_IOSERVICE_OFFLINE_STATUS_TOPIC and data NS_IOSERVICE_ONLINE.

Definition at line 165 of file nsIIOService.idl.

#define NS_IOSERVICE_OFFLINE   "offline"

Definition at line 167 of file nsIIOService.idl.

#define NS_IOSERVICE_OFFLINE_STATUS_TOPIC   "network:offline-status-changed"

Definition at line 166 of file nsIIOService.idl.

#define NS_IOSERVICE_ONLINE   "online"

Definition at line 168 of file nsIIOService.idl.