From 8bb8287dcb502ffd02781c225b4222611b8b7eb3 Mon Sep 17 00:00:00 2001 From: peri4 Date: Mon, 16 Jan 2012 01:01:49 +0400 Subject: [PATCH] 16.01.2012 - version 0.1.1 --- AUTHORS.txt | 2 ++ main.cpp | 2 +- pibitarray.h | 2 +- pibytearray.cpp | 2 +- pibytearray.h | 2 +- pichar.h | 2 +- picli.cpp | 2 +- picli.h | 2 +- picodec.cpp | 6 +++--- picodec.h | 2 +- piconfig.cpp | 2 +- piconfig.h | 2 +- piconsole.cpp | 2 +- piconsole.h | 2 +- picontainers.h | 2 +- pidir.cpp | 2 +- pidir.h | 2 +- piethernet.cpp | 2 +- piethernet.h | 2 +- pievaluator.cpp | 2 +- pievaluator.h | 2 +- pifile.cpp | 2 +- pifile.h | 2 +- pigeometry.h | 2 +- piincludes.h | 2 +- pikbdlistener.cpp | 2 +- pikbdlistener.h | 2 +- pimath.cpp | 2 +- pimath.h | 2 +- pimonitor.cpp | 2 +- pimonitor.h | 2 +- pimultiprotocol.cpp | 2 +- pimultiprotocol.h | 2 +- pimutex.h | 2 +- piobject.cpp | 2 +- piobject.h | 2 +- pip.h | 2 +- pip.kdev4 | 2 +- piprocess.cpp | 4 ++-- piprocess.h | 2 +- piprotocol.cpp | 2 +- piprotocol.h | 7 ++++--- piserial.cpp | 2 +- piserial.h | 6 +++--- pisignals.cpp | 2 +- pisignals.h | 2 +- pistring.cpp | 2 +- pistring.h | 2 +- pisystemmonitor.cpp | 2 +- pisystemmonitor.h | 2 +- pithread.cpp | 2 +- pithread.h | 2 +- pitimer.cpp | 2 +- pitimer.h | 2 +- pivariable.cpp | 2 +- pivariable.h | 2 +- 56 files changed, 65 insertions(+), 62 deletions(-) create mode 100644 AUTHORS.txt diff --git a/AUTHORS.txt b/AUTHORS.txt new file mode 100644 index 00000000..b4d8399d --- /dev/null +++ b/AUTHORS.txt @@ -0,0 +1,2 @@ +Pelipenko Ivan (peri4) peri4ko@gmail.com +Bychkov Andrey (blizer) wapmobil@gmail.com diff --git a/main.cpp b/main.cpp index bcdecd64..566d3677 100644 --- a/main.cpp +++ b/main.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Test program - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pibitarray.h b/pibitarray.h index 818f34d3..569557a0 100644 --- a/pibitarray.h +++ b/pibitarray.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Bit array - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pibytearray.cpp b/pibytearray.cpp index c907da3e..da0bddd5 100644 --- a/pibytearray.cpp +++ b/pibytearray.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Byte array - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pibytearray.h b/pibytearray.h index bc84ff2e..120c8d31 100644 --- a/pibytearray.h +++ b/pibytearray.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Byte array - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pichar.h b/pichar.h index 19455c5c..7521f924 100644 --- a/pichar.h +++ b/pichar.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Unicode char - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/picli.cpp b/picli.cpp index 2ef09a79..d0eb6904 100644 --- a/picli.cpp +++ b/picli.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Command-Line Parser - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/picli.h b/picli.h index 717cb87e..5108c4ff 100644 --- a/picli.h +++ b/picli.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Command-Line Parser - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/picodec.cpp b/picodec.cpp index a103f8dc..4d23ada9 100644 --- a/picodec.cpp +++ b/picodec.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Text codings coder, based on "iconv" - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,7 +21,7 @@ PIStringList PICodec::availableCodecs() { - exec("iconv", "-l"); + exec("/usr/bin/iconv", "-l"); waitForFinish(); PIString str(readOutput()); str.cutLeft(str.find("\n ")); @@ -35,7 +35,7 @@ PIByteArray PICodec::exec_iconv(const PIString & from, const PIString & to, cons tf.clear(); tf << str; tf.close(); - exec("iconv", ("-f=" + from), ("-t=" + to), tf.path()); + exec("/usr/bin/iconv", ("-f=" + from), ("-t=" + to), tf.path()); waitForFinish(); return readOutput(); } diff --git a/picodec.h b/picodec.h index 6b6deb5f..6fe2e51d 100644 --- a/picodec.h +++ b/picodec.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Text codings coder, based on "iconv" - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/piconfig.cpp b/piconfig.cpp index 106e3a29..fbc70f6c 100644 --- a/piconfig.cpp +++ b/piconfig.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Config parser - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/piconfig.h b/piconfig.h index a1a98dfb..db166e9e 100644 --- a/piconfig.h +++ b/piconfig.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Config parser - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/piconsole.cpp b/piconsole.cpp index df0a47d7..783e27b2 100644 --- a/piconsole.cpp +++ b/piconsole.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Console output/input - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/piconsole.h b/piconsole.h index 7fed4204..36397aac 100644 --- a/piconsole.h +++ b/piconsole.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Console output/input - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/picontainers.h b/picontainers.h index 147e3fdd..60b3d7f9 100644 --- a/picontainers.h +++ b/picontainers.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Generic containers, based on STL - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pidir.cpp b/pidir.cpp index 25a714d6..d007ecca 100644 --- a/pidir.cpp +++ b/pidir.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Directory - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pidir.h b/pidir.h index 88255076..702f220c 100644 --- a/pidir.h +++ b/pidir.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Directory - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/piethernet.cpp b/piethernet.cpp index 6218796d..5f5d4ba1 100644 --- a/piethernet.cpp +++ b/piethernet.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Ethernet, UDP - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/piethernet.h b/piethernet.h index 2099c7de..945b248a 100644 --- a/piethernet.h +++ b/piethernet.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Ethernet, UDP - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pievaluator.cpp b/pievaluator.cpp index 764dc371..ef3e2626 100644 --- a/pievaluator.cpp +++ b/pievaluator.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Evaluator designed for stream computing - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pievaluator.h b/pievaluator.h index e94f1aed..9009c59d 100644 --- a/pievaluator.h +++ b/pievaluator.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Evaluator designed for stream computing - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pifile.cpp b/pifile.cpp index 7a57c1bb..78b7b3aa 100644 --- a/pifile.cpp +++ b/pifile.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives File - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pifile.h b/pifile.h index c423d48a..7793f906 100644 --- a/pifile.h +++ b/pifile.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives File - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pigeometry.h b/pigeometry.h index 7417447a..a64fb4bc 100644 --- a/pigeometry.h +++ b/pigeometry.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Geometry - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/piincludes.h b/piincludes.h index f3624206..dbfeb075 100644 --- a/piincludes.h +++ b/piincludes.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Global includes - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pikbdlistener.cpp b/pikbdlistener.cpp index 0a555489..4b3e66cb 100644 --- a/pikbdlistener.cpp +++ b/pikbdlistener.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Keyboard grabber for console - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pikbdlistener.h b/pikbdlistener.h index cf8ead11..a24a3129 100644 --- a/pikbdlistener.h +++ b/pikbdlistener.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Keyboard grabber for console - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pimath.cpp b/pimath.cpp index 65c37de5..d74bc2aa 100644 --- a/pimath.cpp +++ b/pimath.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Math - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pimath.h b/pimath.h index 506bb476..6c13fecb 100644 --- a/pimath.h +++ b/pimath.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Math - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pimonitor.cpp b/pimonitor.cpp index b8e93419..3e3d917d 100644 --- a/pimonitor.cpp +++ b/pimonitor.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Counter of some PIP types - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pimonitor.h b/pimonitor.h index 558097bc..0395e847 100644 --- a/pimonitor.h +++ b/pimonitor.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Counter of some PIP types - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pimultiprotocol.cpp b/pimultiprotocol.cpp index 5f51e779..e3eed978 100644 --- a/pimultiprotocol.cpp +++ b/pimultiprotocol.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Multiprotocol - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pimultiprotocol.h b/pimultiprotocol.h index 610674c3..c8bc7ca8 100644 --- a/pimultiprotocol.h +++ b/pimultiprotocol.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Multiprotocol - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pimutex.h b/pimutex.h index 57acc159..87019202 100644 --- a/pimutex.h +++ b/pimutex.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Mutex - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/piobject.cpp b/piobject.cpp index 1ff63f21..ec2ac440 100644 --- a/piobject.cpp +++ b/piobject.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Object, base class of some PIP classes, provide EVENT -> EVENT_HANDLER mechanism - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/piobject.h b/piobject.h index b6247e6a..5aad2fa0 100644 --- a/piobject.h +++ b/piobject.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Object, base class of some PIP classes, provide EVENT -> EVENT_HANDLER mechanism - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pip.h b/pip.h index ce92b7ad..b132a014 100644 --- a/pip.h +++ b/pip.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives All includes - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pip.kdev4 b/pip.kdev4 index fb90c960..a47a22f6 100644 --- a/pip.kdev4 +++ b/pip.kdev4 @@ -1,3 +1,3 @@ [Project] -Manager=KDevCMakeManager +Manager= Name=pip diff --git a/piprocess.cpp b/piprocess.cpp index ffb51bf3..12f2cfc9 100644 --- a/piprocess.cpp +++ b/piprocess.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Process - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -143,7 +143,7 @@ void PIProcess::run() { cout << "[PIProcess] \"CreateProcess\" error, " << errorString() << endl; #else if (execve(str.c_str(), a, e) < 0) - cout << "[PIProcess] \"execvpe\" error, " << errorString() << endl; + cout << "[PIProcess] \"execve\" error, " << errorString() << endl; } else { msleep(1); //cout << "wait" << endl; diff --git a/piprocess.h b/piprocess.h index ace90c99..60fe32c2 100644 --- a/piprocess.h +++ b/piprocess.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Process - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/piprotocol.cpp b/piprotocol.cpp index 41e35443..d56308ec 100644 --- a/piprotocol.cpp +++ b/piprotocol.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Protocol, input/output channel (COM, UDP) - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com, Bychkov Andrey wapmobil@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/piprotocol.h b/piprotocol.h index d0710207..cc1f0767 100644 --- a/piprotocol.h +++ b/piprotocol.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Protocol, input/output channel (COM, UDP) - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com, Bychkov Andrey wapmobil@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -67,9 +67,10 @@ public: EVENT_HANDLER0(PIProtocol, void, stopReceive); void setExpectedFrequency(float frequency); // for connection quality diagnostic void setReceiverDevice(const PIString & device, PISerial::Speed speed, bool force = false); // for Serial - void setReceiverData(void * dataPtr, int dataSize) {this->dataPtr = (uchar * )dataPtr; this->dataSize = dataSize;} + void setReceiverData(void * dataPtr, int dataSize) {this->dataPtr = (uchar * )dataPtr; this->dataSize = dataSize; if (type_rec == PIProtocol::Serial || type_send == PIProtocol::Serial) ser->setReadData(headerPtr, headerSize, dataSize);} + void setReceiverDataHeader(void * headerPtr, int headerSize) {this->headerPtr = (uchar * )dataPtr; this->headerSize = headerSize; if (type_rec == PIProtocol::Serial || type_send == PIProtocol::Serial) ser->setReadData(headerPtr, headerSize, dataSize);} void setReceiverAddress(const PIString & ip, int port, bool force = false); // for Ethernet - void setReceiverParameters(PIFlags parameters) {if (type_send == PIProtocol::Serial) ser->setParameters(parameters);} // for Serial + void setReceiverParameters(PIFlags parameters) {if (type_rec == PIProtocol::Serial || type_send == PIProtocol::Serial) ser->setParameters(parameters);} // for Serial void setReceiveSlot(ReceiveFunc slot) {ret_func = slot;} float expectedFrequency() const {return exp_freq;} diff --git a/piserial.cpp b/piserial.cpp index fb1eed77..7b355278 100644 --- a/piserial.cpp +++ b/piserial.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives COM - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com, Bychkov Andrey wapmobil@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/piserial.h b/piserial.h index 65621455..dd6fa520 100644 --- a/piserial.h +++ b/piserial.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives COM - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com, Bychkov Andrey wapmobil@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -83,13 +83,13 @@ public: bool init(); bool initialized() const {return fd != -1;} void terminate(); - + PIByteArray lastHeader() {return mheader;} PIByteArray internalBuffer() {return PIByteArray(sbuffer, BUFFER_SIZE);} private: int convertSpeed(PISerial::Speed speed); - + void begin(); void run(); void end(); diff --git a/pisignals.cpp b/pisignals.cpp index 36f14a1c..2c955182 100644 --- a/pisignals.cpp +++ b/pisignals.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Signals - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pisignals.h b/pisignals.h index 3d566696..6fb83e45 100644 --- a/pisignals.h +++ b/pisignals.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Signals - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pistring.cpp b/pistring.cpp index 82c34e5d..9689f096 100644 --- a/pistring.cpp +++ b/pistring.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives String - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pistring.h b/pistring.h index 93218c10..9aa44e80 100644 --- a/pistring.h +++ b/pistring.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives String - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pisystemmonitor.cpp b/pisystemmonitor.cpp index 5a380971..0db64b1f 100644 --- a/pisystemmonitor.cpp +++ b/pisystemmonitor.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Process resource monitor - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pisystemmonitor.h b/pisystemmonitor.h index 5c2ac0f4..1f997364 100644 --- a/pisystemmonitor.h +++ b/pisystemmonitor.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Process resource monitor - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pithread.cpp b/pithread.cpp index 84eba1bf..0ebdc930 100644 --- a/pithread.cpp +++ b/pithread.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Thread - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pithread.h b/pithread.h index 610f8d82..9371d335 100644 --- a/pithread.h +++ b/pithread.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Thread - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pitimer.cpp b/pitimer.cpp index a881e289..0071cd57 100644 --- a/pitimer.cpp +++ b/pitimer.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Timer - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pitimer.h b/pitimer.h index 99d4f2d0..4a846ebc 100644 --- a/pitimer.h +++ b/pitimer.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Timer - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pivariable.cpp b/pivariable.cpp index 2d16623a..d7b7f1e3 100644 --- a/pivariable.cpp +++ b/pivariable.cpp @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Variable, Struct (simple serialization) - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/pivariable.h b/pivariable.h index 669a25d6..32855e9d 100644 --- a/pivariable.h +++ b/pivariable.h @@ -1,7 +1,7 @@ /* PIP - Platform Independent Primitives Variable, Struct (simple serialization) - Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru + Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by