File: transferflags.hh

package info (click to toggle)
qdmr 0.13.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,420 kB
  • sloc: cpp: 95,929; xml: 10,749; python: 1,108; makefile: 78; sh: 9
file content (32 lines) | stat: -rw-r--r-- 863 bytes parent folder | download
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