X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fserial.h;h=069789c85097a69e8510d347ca43a02630009a2a;hp=0e873619c14777f9402a74e2d7012f367ee2275f;hb=b97d4e9f86e90254ab9edef7ee62a910f6333c78;hpb=463240ea92d65693f76c0e0991c322b3c4527ffe diff --git a/source/serial.h b/source/serial.h index 0e87361..069789c 100644 --- a/source/serial.h +++ b/source/serial.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspio -Copyright © 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_IO_SERIAL_H_ #define MSP_IO_SERIAL_H_ @@ -24,15 +17,16 @@ public: }; private: - struct Private; - Handle handle; - Private *priv; public: Serial(const std::string &); virtual ~Serial(); +private: + void close(); + +public: virtual void set_block(bool); void set_baud_rate(unsigned); @@ -41,12 +35,12 @@ public: void set_stop_bits(unsigned); void set_parameters(const std::string &); - virtual Handle get_event_handle() { return handle; } - private: - void close(); virtual unsigned do_write(const char *, unsigned); virtual unsigned do_read(char *, unsigned); + +public: + virtual Handle get_event_handle(); }; } // namespace IO