Rudiments
/home/dmuse/src/rudiments/include/rudiments/private/modemutil.h
00001 // Copyright (c) 2004 David Muse
00002 // See the COPYING file for more information.
00003 
00004 #ifndef RUDIMENTS_MODEMUTIL_H
00005 #define RUDIMENTS_MODEMUTIL_H
00006 
00007 #include <rudiments/listener.h>
00008 
00009 #ifdef RUDIMENTS_NAMESPACE
00010 namespace rudiments {
00011 #endif
00012 
00013 class modemutilprivate;
00014 
00015 class RUDIMENTS_DLLSPEC modemutil {
00016         public:
00017                         modemutil();
00018                 virtual ~modemutil();
00019 
00020                 void    initialize(const char *device, const char *baud);
00021 
00022         protected:
00023                 const char      *_devicename();
00024                 const char      *_baud();
00025 
00026                 bool    configureSerialPort(int32_t fd, const char *baud);
00027 
00028         private:
00029                 modemutilprivate        *pvt;
00030 
00031 };
00032 
00033 #ifdef RUDIMENTS_NAMESPACE
00034 }
00035 #endif
00036 
00037 #endif