#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; EVENT(sended) EVENT(received) EVENT_HANDLER(void, send); EVENT_HANDLER(void, request); void write(PIIODevice * d); void read(PIIODevice * d); private: Core * core; }; static KInterface K; } #endif // CDUTILS_K_H