1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
// This file is generated by kconfig_compiler from serial.kcfg.
// All changes you do to this file will be lost.
#ifndef KNM_SERIALSETTING_H
#define KNM_SERIALSETTING_H
#include <kglobal.h>
#include <kdebug.h>
#include <kcoreconfigskeleton.h>
#include "setting.h"
#include "knminternals_export.h"
namespace Knm {
class KNMINTERNALS_EXPORT SerialSetting : public Setting
{
public:
class EnumParity
{
public:
enum type { None, Even, Odd, COUNT };
};
SerialSetting( );
~SerialSetting();
QString name() const;
bool hasSecrets() const;
/**
Set Baud
*/
void setBaud( uint v )
{
mBaud = v;
}
/**
Get Baud
*/
uint baud() const
{
return mBaud;
}
/**
Set Data bits
*/
void setBits( uint v )
{
mBits = v;
}
/**
Get Data bits
*/
uint bits() const
{
return mBits;
}
/**
Set Parity
*/
void setParity( int v )
{
mParity = v;
}
/**
Get Parity
*/
int parity() const
{
return mParity;
}
/**
Set Stop bits
*/
void setStopbits( uint v )
{
mStopbits = v;
}
/**
Get Stop bits
*/
uint stopbits() const
{
return mStopbits;
}
/**
Set Send delay
*/
void setSenddelay( quint64 v )
{
mSenddelay = v;
}
/**
Get Send delay
*/
quint64 senddelay() const
{
return mSenddelay;
}
protected:
// serial
uint mBaud;
uint mBits;
int mParity;
uint mStopbits;
quint64 mSenddelay;
private:
};
}
#endif
|