summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/ipc.h
Unidiff
Diffstat (limited to 'pwmanager/pwmanager/ipc.h') (more/less context) (show whitespace changes)
-rw-r--r--pwmanager/pwmanager/ipc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pwmanager/pwmanager/ipc.h b/pwmanager/pwmanager/ipc.h
index 7bfca02..3248283 100644
--- a/pwmanager/pwmanager/ipc.h
+++ b/pwmanager/pwmanager/ipc.h
@@ -20,25 +20,25 @@
20#ifndef __PWM_IPC_H 20#ifndef __PWM_IPC_H
21#define __PWM_IPC_H 21#define __PWM_IPC_H
22 22
23#include <qobject.h> 23#include <qobject.h>
24#ifndef _WIN32_ 24#ifndef _WIN32_
25#include <unistd.h> 25#include <unistd.h>
26#else 26#else
27#include <io.h> 27#include <io.h>
28#endif 28#endif
29#ifndef PWM_EMBEDDED 29#ifndef PWM_EMBEDDED
30#include <stdio.h> 30#include <stdio.h>
31#else 31#else
32#include <qsocket.h> 32#include <q3socket.h>
33#endif 33#endif
34 34
35class QSocketNotifier; 35class QSocketNotifier;
36 36
37/** very simple interprocess communication class */ 37/** very simple interprocess communication class */
38class Ipc : public QObject 38class Ipc : public QObject
39{ 39{
40 Q_OBJECT 40 Q_OBJECT
41public: 41public:
42 /** create a new Ipc communication object */ 42 /** create a new Ipc communication object */
43 Ipc(); 43 Ipc();
44 /** create a new Ipc communication object and 44 /** create a new Ipc communication object and
@@ -65,25 +65,25 @@ signals:
65 65
66protected slots: 66protected slots:
67 /** received data on socket */ 67 /** received data on socket */
68 void receiveData(int s); 68 void receiveData(int s);
69 69
70protected: 70protected:
71#ifndef PWM_EMBEDDED 71#ifndef PWM_EMBEDDED
72 /** stream on "this" end of the socket (sock[0]) */ 72 /** stream on "this" end of the socket (sock[0]) */
73 FILE *stream; 73 FILE *stream;
74 /** current receive buffer size */ 74 /** current receive buffer size */
75 size_t rdBufSize; 75 size_t rdBufSize;
76#else 76#else
77 QSocket* qSock; 77 Q3Socket* qSock;
78 /** current receive buffer size */ 78 /** current receive buffer size */
79 unsigned int rdBufSize; 79 unsigned int rdBufSize;
80#endif 80#endif
81 81
82 /** full-duplex socket file desciptors */ 82 /** full-duplex socket file desciptors */
83 int sock[2]; 83 int sock[2];
84 /** socket notifier */ 84 /** socket notifier */
85 QSocketNotifier *notifier; 85 QSocketNotifier *notifier;
86 /** are we the host or the client object? */ 86 /** are we the host or the client object? */
87 bool host; 87 bool host;
88 /** receive buffer */ 88 /** receive buffer */
89 char *rdBuf; 89 char *rdBuf;