summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/pmessage.h
blob: a93cd1543e0f17c4e62df35d461fc2af33f4bdc6 (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(TQObject *_from, const char *_to)
    : __from(_from), __to(_to)
  {
  }

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

};
#endif

#endif