git-svn-id: svn://db.shs.com.ru/libs@98 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -27,16 +27,32 @@ class Core: public PIObject
|
||||
public:
|
||||
static Core * instance() {return __Core_Initializer__::__instance__;}
|
||||
|
||||
EVENT(K_Sended)
|
||||
EVENT(K_Received)
|
||||
EVENT_HANDLER(void, K_Send);
|
||||
EVENT_HANDLER(void, K_Request);
|
||||
|
||||
KSection k_;
|
||||
|
||||
void k_write(PIIODevice * d);
|
||||
void k_read(PIIODevice * d);
|
||||
|
||||
private:
|
||||
Core();
|
||||
Core(const char * conf =
|
||||
#ifdef CDPULT
|
||||
pult_config
|
||||
#else
|
||||
app_config
|
||||
#endif
|
||||
);
|
||||
EVENT_HANDLER2(void, dataReceived, const PIString &, from, const PIByteArray &, data);
|
||||
void k_rec(const PIByteArray & data);
|
||||
void x_rec(const PIByteArray & data);
|
||||
void c_rec(const PIByteArray & data);
|
||||
|
||||
static const char app_config[], pult_config[];
|
||||
PIConnection connection;
|
||||
|
||||
KSection k_plain;
|
||||
PIMap<int, PIMap<int, KSection> > k_sections; // [enum KSection][index] = CDUtils::KSection
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user