diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kppp/KPPPIface.h | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kppp/KPPPIface.h')
-rw-r--r-- | kppp/KPPPIface.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/kppp/KPPPIface.h b/kppp/KPPPIface.h new file mode 100644 index 00000000..2b5a6cb5 --- /dev/null +++ b/kppp/KPPPIface.h @@ -0,0 +1,39 @@ +#ifndef KPPPIFACE_H +#define KPPPIFACE_H + +#include <dcopobject.h> + +/* IMPORTANT: when using the aboutToDisconnect signal bear in mind that + + - if pppd dies, aboutToDisconnect will never be emitted because the + connection is already dead by the time kppp knows about it. + disconnected() will be emitted regardless of the cause of + disconnection. + + - during a normal disconnection aboutToDisconnect will be emitted + shortly before disconnection, but in systems under heavy load there's + no warranty that the signal will be delivered to the applications + before the disconnection is performed. DCOP works this way, + sorry. + +*/ + +class KpppIface : virtual public DCOPObject +{ + K_DCOP + + k_dcop: + virtual void beginConnect() = 0; + virtual void disconnect() = 0; + virtual bool isConnected() const = 0; + + k_dcop_signals: + + void aboutToConnect(); + void connected(); + void aboutToDisconnect(); // see the note above + void disconnected(); + +}; + +#endif |