NetBurner 3.5.8
PDF Version
Toggle main menu visibility
config_notify.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
5
#ifndef CONFIG_NOTIFY_H
6
#define CONFIG_NOTIFY_H
7
8
#include <buffers.h>
9
#include <nbstring.h>
10
#include <string.h>
11
#include <utils.h>
12
#include <config_obj.h>
13
14
15
class
ConfigNotificationObject
16
{
17
int
mask_index;
18
static
void
ClrBits(config_leaf *p,
void
*pextra);
19
static
void
SetBits(config_leaf *p,
void
*pextra);
20
21
public
:
22
ConfigNotificationObject();
23
~ConfigNotificationObject();
24
virtual
void
Notify()=0;
25
void
RegisterNotification(config_leaf & leaf);
26
static
void
NotifyByMask(notify_list & nl);
27
};
28
29
30
typedef
void(notify_callback)();
31
32
33
class
ConfigNotificationCallBack:
public
ConfigNotificationObject
34
{
35
notify_callback * pFunc;
36
inline
virtual
void
Notify(){
if
(pFunc) pFunc(); };
37
38
public
:
39
ConfigNotificationCallBack( notify_callback * pCallBack){pFunc=pCallBack; };
40
};
41
42
43
44
45
46
47
#endif
48
49
nbrtos
include
config_notify.h
Generated by
1.18.0