libdrmconf  0.11.3
A library to program DMR radios.
d878uv2_codeplug.hh
1 #ifndef D878UV2_CODEPLUG_HH
2 #define D878UV2_CODEPLUG_HH
3 
4 #include <QDateTime>
5 
6 #include "d878uv_codeplug.hh"
7 #include "signaling.hh"
8 
9 class Channel;
10 class DMRContact;
11 class Zone;
12 class RXGroupList;
13 class ScanList;
14 class GPSSystem;
15 
16 
197 {
198  Q_OBJECT
199 
200 protected:
202  explicit D878UV2Codeplug(const QString &label, QObject *parent = nullptr);
203 
204 public:
206  explicit D878UV2Codeplug(QObject *parent = nullptr);
207 
208 protected:
209  void allocateContacts();
210  bool encodeContacts(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack());
211 
212 protected:
216  static constexpr unsigned int contactIdTable() { return 0x04800000; }
218  };
219 };
220 
221 #endif // D878UVCODEPLUG_HH
The base class of all channels (analog and digital) of a codeplug configuration.
Definition: channel.hh:34
Base class for all codeplug contexts.
Definition: codeplug.hh:195
Certain flags passed to CodePlug::encode to control the transfer and encoding of the codeplug.
Definition: codeplug.hh:24
Represents the device specific binary codeplug for Anytone AT-D878UVII radios.
Definition: d878uv2_codeplug.hh:197
bool encodeContacts(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encode contacts into codeplug.
Definition: d878uv2_codeplug.cc:57
void allocateContacts()
Allocate contacts from bitmaps.
Definition: d878uv2_codeplug.cc:32
D878UV2Codeplug(const QString &label, QObject *parent=nullptr)
Hidden constructor.
Definition: d878uv2_codeplug.cc:17
Represents the device specific binary codeplug for Anytone AT-D878UV radios.
Definition: d878uv_codeplug.hh:230
Represents a digital contact, that is a DMR number.
Definition: contact.hh:141
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition: errorstack.hh:41
This class represents a GPS signalling system within the codeplug.
Definition: gpssystem.hh:64
Generic representation of a RX group list.
Definition: rxgrouplist.hh:14
Generic representation of a scan list.
Definition: scanlist.hh:15
Represents a zone within the generic configuration.
Definition: zone.hh:15
Internal used offsets within the codeplug.
Definition: d878uv2_codeplug.hh:214
Internal offsets within the codeplug.
Definition: d878uv_codeplug.hh:1935