libemailfunctions

#include <networkstatus.h>

Inherits TQObject, and DCOPObject.

Public Types

enum  Status { Online , Offline }
 

Signals

void statusChanged (Status status)
 

Public Member Functions

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

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

◆ Status

The possible states.

Definition at line 43 of file networkstatus.h.

Constructor & Destructor Documentation

◆ ~NetworkStatus()

NetworkStatus::~NetworkStatus ( )

Destructor.

Definition at line 47 of file networkstatus.cpp.

◆ NetworkStatus()

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

◆ onlineStatusChanged

void NetworkStatus::onlineStatusChanged ( )

Called by the network interface watcher in KDED.

Definition at line 65 of file networkstatus.cpp.

◆ self()

NetworkStatus * NetworkStatus::self ( )
static

Returns the only instance of this class.

Definition at line 80 of file networkstatus.cpp.

◆ setStatus()

void NetworkStatus::setStatus ( Status  status)

Sets a new status.

Parameters
statusThe new status.

Definition at line 53 of file networkstatus.cpp.

◆ status()

NetworkStatus::Status NetworkStatus::status ( ) const

Returns the current status.

Definition at line 60 of file networkstatus.cpp.

◆ statusChanged

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

Emitted whenever the status has changed.

Parameters
statusThe new status.

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