serialport.h
// Copyright (c) 2004 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_SERIALPORT_H
#define RUDIMENTS_SERIALPORT_H
#include <rudiments/private/serialportincludes.h>
class serialportprivate;
class RUDIMENTS_DLLSPEC serialport : public filedescriptor {
public:
serialport();
serialport(const serialport &s);
serialport &operator=(const serialport &s);
virtual ~serialport();
bool setProfileNow(serialportprofile *profile);
bool setProfileOnDrain(serialportprofile *profile);
bool setProfileOnFlush(serialportprofile *profile);
bool getProfile(serialportprofile *profile);
bool drain();
bool flush();
bool flushInput();
bool flushOutput();
bool suspendOutput();
bool restartOutput();
bool transmitStop();
bool transmitStart();
bool sendBreak(int32_t duration);
#include <rudiments/private/serialport.h>
};
#endif