summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/pmessage.h
blob: 5c777b24cd975fbdf200b49641eb6dab5ec1c02e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef PUKE_MESSAGE_H
#define PUKE_MESSAGE_H

typedef struct {
  unsigned int iHeader;   // Filled in durring in PukeController, do not set
  int iCommand;
  int iWinId;
  int iArg;
  int iTextSize; // Size of the text message that follows
  char *cArg;
} PukeMessage;

typedef struct {
  int fd;
  int iWinId;
} widgetId;

const uint iPukeHeader = 42U;

#if 0
class errorInvalidSet {
public:
  errorInvalidSet(QObject *_from, const char *_to)
    : __from(_from), __to(_to)
  {
  }

  QObject *from() { return __from; }
  const char *to() { return __to; }
    
private:
  QObject *__from;
  const char *__to;

};
#endif

#endif