|
Last change
on this file since 11096 was 11057, checked in by stuerze, 3 weeks ago |
|
bug fixes resulting from overall tests
|
|
File size:
683 bytes
|
| Line | |
|---|
| 1 | #ifndef PPPTHREAD_H
|
|---|
| 2 | #define PPPTHREAD_H
|
|---|
| 3 |
|
|---|
| 4 | #include <deque>
|
|---|
| 5 | #include <vector>
|
|---|
| 6 | #include <QtCore>
|
|---|
| 7 |
|
|---|
| 8 | #include "pppOptions.h"
|
|---|
| 9 | #include "pppClient.h"
|
|---|
| 10 | #include "pppRun.h"
|
|---|
| 11 |
|
|---|
| 12 | namespace BNC_PPP {
|
|---|
| 13 |
|
|---|
| 14 | class t_pppThread : public QThread {
|
|---|
| 15 | Q_OBJECT
|
|---|
| 16 | public:
|
|---|
| 17 | t_pppThread(const t_pppOptions* opt);
|
|---|
| 18 | ~t_pppThread();
|
|---|
| 19 | virtual void run();
|
|---|
| 20 | static void msleep(unsigned long msecs){QThread::msleep(msecs);}
|
|---|
| 21 | // blocks until t_pppRun is created and connected (or creation failed)
|
|---|
| 22 | void waitUntilReady() {_ready.acquire();}
|
|---|
| 23 |
|
|---|
| 24 | signals:
|
|---|
| 25 | void newMessage(QByteArray msg, bool showOnScreen);
|
|---|
| 26 |
|
|---|
| 27 | private:
|
|---|
| 28 | const t_pppOptions* _opt;
|
|---|
| 29 | t_pppRun* _pppRun;
|
|---|
| 30 | QSemaphore _ready;
|
|---|
| 31 | };
|
|---|
| 32 |
|
|---|
| 33 | }
|
|---|
| 34 |
|
|---|
| 35 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.