git-svn-id: svn://db.shs.com.ru/libs@98 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
41
cd_utils/cdutils_k.h
Normal file
41
cd_utils/cdutils_k.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user