libemailfunctions

KPIM::NetworkStatus Class Reference

This is a class for monitoring network status -- basically, the machine KDE is running on going from "online" mode to offline. More...

#include <networkstatus.h>

Inheritance diagram for KPIM::NetworkStatus:

List of all members.


Public Types

enum  Status { Online, Offline }

Signals

void statusChanged (Status status)

Public Member Functions

void setStatus (Status status)
Status status () const
 ~NetworkStatus ()

Static Public Member Functions

static NetworkStatusself ()

Protected Member Functions

 NetworkStatus ()

Detailed Description

This is a class for monitoring network status -- basically, the machine KDE is running on going from "online" mode to offline.

What this means is left as an exercise for the reader.

Definition at line 35 of file networkstatus.h.


Member Enumeration Documentation

The possible states.

Enumerator:
Online 
Offline 

Definition at line 43 of file networkstatus.h.


Constructor & Destructor Documentation

NetworkStatus::~NetworkStatus (  ) 

Destructor.

Definition at line 47 of file networkstatus.cpp.

NetworkStatus::NetworkStatus (  )  [protected]

Constructor.

This is protected, so you must use self() to get the singleton object of this class.

Definition at line 35 of file networkstatus.cpp.


Member Function Documentation

void NetworkStatus::onlineStatusChanged (  ) 

Called by the network interface watcher in KDED.

Definition at line 65 of file networkstatus.cpp.

NetworkStatus * NetworkStatus::self (  )  [static]

Returns the only instance of this class.

Definition at line 80 of file networkstatus.cpp.

void NetworkStatus::setStatus ( Status  status  ) 

Sets a new status.

Parameters:
status The new status.

Definition at line 53 of file networkstatus.cpp.

NetworkStatus::Status NetworkStatus::status (  )  const

Returns the current status.

Definition at line 60 of file networkstatus.cpp.

void KPIM::NetworkStatus::statusChanged ( Status  status  )  [signal]

Emitted whenever the status has changed.

Parameters:
status The new status.


The documentation for this class was generated from the following files: