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
|
#ifndef TRANSFERFLAGS_HH
#define TRANSFERFLAGS_HH
/** Controls the transfer of codeplugs, callsign DBs etc to the device. */
class TransferFlags
{
public:
/** Default constructor. */
TransferFlags();
/** Constructor. */
TransferFlags(bool blocking, bool updateDeviceClock);
/** Returns @c true if the transfer is blocking. */
bool blocking() const;
/** Set if transfer is blocking. */
void setBlocking(bool enable);
/** Returns @c true if the device clock gets updated during transfer. */
bool updateDeviceClock() const;
/** Sets if the device clock gets updated during the transfer. */
void setUpdateDeviceClock(bool enable);
protected:
/** If @c true, the transfer is blocking. */
bool _blocking;
/** If @c true, the device clock gets updated during the transfer. */
bool _updateDeviceClock;
};
#endif // TRANSFERFLAGS_HH
|