33 lines
499 B
C++
33 lines
499 B
C++
#ifndef CDUTILS_K_H
|
|
#define CDUTILS_K_H
|
|
|
|
#include "cdutils_interface.h"
|
|
|
|
|
|
namespace CDUtils {
|
|
|
|
|
|
class KInterface: public Interface
|
|
{
|
|
PIOBJECT(CDUtils::KInterface)
|
|
public:
|
|
KInterface();
|
|
|
|
EVENT(sended)
|
|
EVENT(sendFailed)
|
|
EVENT(received)
|
|
EVENT(receiveFailed)
|
|
EVENT1(keepNamesRequest, bool*, kn)
|
|
EVENT_HANDLER(void, send);
|
|
EVENT_HANDLER(void, request);
|
|
|
|
void directChange(const CDType & k, double v);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
extern CDUtils::KInterface K;
|
|
|
|
#endif // CDUTILS_K_H
|