libdrmconf  0.10.4
A library to program DMR radios.
commercial_extension.hh
1 #ifndef COMMERCIALEXTENSION_HH
2 #define COMMERCIALEXTENSION_HH
3 
4 #include "configobject.hh"
5 #include "configreference.hh"
6 #include "encryptionextension.hh"
7 
11 {
12  Q_OBJECT
13 
16 
17 public:
19  Q_INVOKABLE explicit CommercialExtension(QObject *parent=nullptr);
20 
21  ConfigItem *clone() const;
22 
25 
26 protected:
29 };
30 
31 
35 {
36  Q_OBJECT
37 
40 
41 public:
43  Q_INVOKABLE explicit CommercialChannelExtension(QObject *parent=nullptr);
44 
45  ConfigItem *clone() const;
46 
51 
56 
57 protected:
60 };
61 
62 
63 #endif // COMMERCIALEXTENSION_HH
Implements the generic extension for all channels configuring commercial features of DMR.
Definition: commercial_extension.hh:35
EncryptionKey * encryptionKey()
Returns the referenced encryption key.
EncryptionKeyReference _encryptionKey
The actual reference to the the encryption key.
Definition: commercial_extension.hh:59
void setEncryptionKeyRef(EncryptionKeyReference *ref)
Sets the reference to the encryption key.
Definition: commercial_extension.cc:56
EncryptionKeyReference * encryptionKeyRef()
Returns the reference to the encryption key.
Definition: commercial_extension.cc:51
Q_INVOKABLE CommercialChannelExtension(QObject *parent=nullptr)
Empty constructor.
Definition: commercial_extension.cc:34
EncryptionKeyReference * encryptionKey
Holds a reference to the associated encryption key.
Definition: commercial_extension.hh:39
void setEncryptionKey(EncryptionKey *key)
References the given encryption key.
Definition: commercial_extension.cc:68
ConfigItem * clone() const
Clones this item.
Definition: commercial_extension.cc:41
Implements the generic extension for the codeplug to represent some commercial features of DMR.
Definition: commercial_extension.hh:11
ConfigItem * clone() const
Clones this item.
Definition: commercial_extension.cc:15
EncryptionKeys * _encryptionKeys
Owns the instance of the encryption key list.
Definition: commercial_extension.hh:28
Q_INVOKABLE CommercialExtension(QObject *parent=nullptr)
Default constructor.
Definition: commercial_extension.cc:8
EncryptionKeys * encryptionKeys
Read only property returning holding the list of encryption keys.
Definition: commercial_extension.hh:15
Base class of all device/vendor specific confiuration extensions.
Definition: configobject.hh:232
Base class for all configuration objects (channels, zones, contacts, etc).
Definition: configobject.hh:40
Implements a reference to an encryption key.
Definition: configreference.hh:269
Base class of all encryption keys.
Definition: encryptionextension.hh:10
The list of encryption keys.
Definition: encryptionextension.hh:101