blob: ca99a38426ae9083a068be7b468d180b739bd503 (
plain) (
blame)
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
|
#ifndef _METRICSCB_H
#define _METRICSCB_H
#include <bfc/dispatch.h>
// metrics codes
namespace Metric {
enum {
TEXTDELTA=10,
};
};
class MetricsCallback : public Dispatchable {
public:
int setMetric(int metricid, int param1=0, int param2=0);
// class Dispatchable codes
enum {
SETMETRIC=100,
};
};
inline int MetricsCallback::setMetric(int metricid, int param1, int param2) {
return _call(SETMETRIC, 0, metricid, param1, param2);
}
class MetricsCallbackI : public MetricsCallback {
public:
virtual int metricscb_setTextDelta(int delta) { return 0; }
protected:
int mcb_setMetric(int metricid, int param1, int param2);
RECVS_DISPATCH;
};
#endif
|