Files
qad/cd_utils/cdutils_k.h

45 lines
733 B
C++

#ifndef CDUTILS_K_H
#define CDUTILS_K_H
#include "cdutils_k_types.h"
#include "piobject.h"
namespace CDUtils {
class Core;
class KInterface: public PIObject
{
PIOBJECT(CDUtils::KInterface)
public:
KInterface();
bool test(int v);
KType & operator [](int v);
const KType operator [](int v) const;
KSection & section(int v);
const KSection section(int v) const;
const KSection & root() const;
EVENT(sended)
EVENT(received)
EVENT_HANDLER(void, send);
EVENT_HANDLER(void, request);
void write(PIIODevice * d);
void read(PIIODevice * d);
void parse(PIIODevice * d);
void update(PIIODevice * d);
private:
Core * core;
};
static KInterface K;
}
#endif // CDUTILS_K_H