LibDMRConf
0.6.0
A library to program DMR radios.
|
The config class, representing the codeplug configuration. More...
#include <config.hh>
Signals | |
void | modified () |
Gets emitted if the configuration gets changed. | |
Public Member Functions | |
Config (QObject *parent=nullptr) | |
Constructs an empty configuration. | |
bool | isModified () const |
Returns true if the config was modified,. More... | |
void | setModified (bool modified) |
Sets the modified flag. | |
ContactList * | contacts () const |
Returns the list of contacts. | |
RXGroupLists * | rxGroupLists () const |
Returns the list of RX group lists. | |
ChannelList * | channelList () const |
Returns the list of channels. | |
ZoneList * | zones () const |
Returns the list of zones. | |
ScanLists * | scanlists () const |
Retruns the list of scanlists. | |
PositioningSystems * | posSystems () const |
Returns the list of positioning systems. | |
RoamingZoneList * | roaming () const |
Returns the list of roaming zones. | |
uint | id () const |
Returns the DMR ID of the radio. | |
void | setId (uint id) |
(Re-)Sets the DMR ID of the radio. | |
const QString & | name () const |
Returns the name of the radio. | |
void | setName (const QString &name) |
(Re-)Sets the name of the radio. | |
const QString & | introLine1 () const |
Returns the first intro line. | |
void | setIntroLine1 (const QString &line) |
(Re-)Sets the first intro line. | |
const QString & | introLine2 () const |
Returns the second intro line. | |
void | setIntroLine2 (const QString &line) |
(Re-)Sets the second intro line. | |
uint | micLevel () const |
Returns the MIC amplification level [1,10]. | |
void | setMicLevel (uint value) |
(Re-)Sets the MIC amplification level [1,10]. | |
bool | speech () const |
Returns true if the speech synthesis is enabled. | |
void | setSpeech (bool enabled) |
Enables/disables the speech synthesis. | |
void | reset () |
Clears the complete configuration. | |
bool | readCSV (const QString &filename, QString &errorMessage) |
Imports a configuration from the given file. | |
bool | readCSV (QTextStream &stream, QString &errorMessage) |
Imports a configuration from the given text stream in text format. | |
bool | writeCSV (const QString &filename, QString &errorMessage) |
Exports the configuration to the given file. | |
bool | writeCSV (QTextStream &stream, QString &errorMessage) |
Exports the configuration to the given text stream in text format. | |
Protected Slots | |
void | onConfigModified () |
Iternal callback. | |
Protected Attributes | |
bool | _modified |
If true , the configuration was modified. | |
ContactList * | _contacts |
The list of contacts. | |
RXGroupLists * | _rxGroupLists |
The list of RX group lists. | |
ChannelList * | _channels |
The list of channels. | |
ZoneList * | _zones |
The list of zones. | |
ScanLists * | _scanlists |
The list of scan lists. | |
PositioningSystems * | _gpsSystems |
The list of GPS Systems. | |
RoamingZoneList * | _roaming |
The list of roaming zones. | |
uint | _id |
DMR id of the radio. | |
QString | _name |
The name of the radio. | |
QString | _introLine1 |
The fist intro line. | |
QString | _introLine2 |
The second intro line. | |
uint | _mic_level |
The MIC amplification level [1-10]. | |
bool | _speech |
If true , speech synthesis is enabled. | |
The config class, representing the codeplug configuration.
It contains the description of the contacts, channels, zones, etc. of the codeplug configuration.
bool Config::isModified | ( | ) | const |
Returns true
if the config was modified,.