summaryrefslogtreecommitdiffstats
path: root/ksirc/baserules.h
blob: 1ba79bf791d82128b4a47790bea0bde8ebf6caa6 (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
#ifndef KBASERULES_H
#define KBASERULES_H

#include "messageReceiver.h"

class KSMBaseRules : public KSircMessageReceiver
{
public:
  KSMBaseRules(KSircProcess *proc)
    : KSircMessageReceiver(proc)
    {
      broadcast = FALSE;
    }
  virtual ~KSMBaseRules()
    {
    }

  virtual void sirc_receive(TQCString str, bool broadcast);

  virtual void control_message(int, TQString);

  filterRuleList *defaultRules();

private:
  bool broadcast;
  char to[101];
  char match_us[101];
  char to_us[101];
  char msg1_match[101];
  char msg1_to[101];
  char msg2_match[101];
  char msg2_to[101];
};

#endif