LibDMRConf  0.6.0
A library to program DMR radios.
Signals | Public Member Functions | Protected Slots | Protected Attributes | List of all members
Config Class Reference

The config class, representing the codeplug configuration. More...

#include <config.hh>

Inheritance diagram for Config:

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.
 
ContactListcontacts () const
 Returns the list of contacts.
 
RXGroupListsrxGroupLists () const
 Returns the list of RX group lists.
 
ChannelListchannelList () const
 Returns the list of channels.
 
ZoneListzones () const
 Returns the list of zones.
 
ScanListsscanlists () const
 Retruns the list of scanlists.
 
PositioningSystemsposSystems () const
 Returns the list of positioning systems.
 
RoamingZoneListroaming () 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.
 

Detailed Description

The config class, representing the codeplug configuration.

It contains the description of the contacts, channels, zones, etc. of the codeplug configuration.

Member Function Documentation

◆ isModified()

bool Config::isModified ( ) const

Returns true if the config was modified,.

See also
modified.

The documentation for this class was generated from the following files: