git-svn-id: svn://db.shs.com.ru/libs@123 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2016-09-20 20:12:24 +00:00
parent 72a1d2cffd
commit 211d498061
17 changed files with 585 additions and 68 deletions

View File

@@ -12,7 +12,9 @@ KInterface::KInterface() {
k_file = PIStringAscii("k.dat");
k_file_size = 0;
CONNECTU(core, K_Sended, this, sended);
CONNECTU(core, K_SendFail, this, sendFailed);
CONNECTU(core, K_Received, this, received);
CONNECTU(core, K_ReceiveFail, this, receiveFailed);
CONNECTU(core, K_KeepNamesRequest, this, keepNamesRequest);
}
@@ -86,6 +88,11 @@ bool KInterface::configure(const PIString & config, const PIString & sect) {
}
void KInterface::reinitConnection(const PIString &configuration) {
core->reinitConnection(configuration);
}
void KInterface::write(PIIODevice * d) {
core->k_write(d);
}
@@ -106,6 +113,16 @@ void KInterface::update(PIIODevice * d) {
}
PIString KInterface::appConfig() {
return core->appConfig();
}
PIString KInterface::pultConfig() {
return core->pultConfig();
}
void KInterface::readFile() {
if (k_file.isEmpty()) return;
PIFile f(k_file, PIIODevice::ReadOnly);
@@ -121,3 +138,8 @@ void KInterface::writeFile() {
write(&f);
k_file_size = f.size();
}
bool KInterface::inProgress() {
return core->inProgress();
}