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

Base class of the positioning systems, that is APRS and DMR position reporting system. More...

#include <gpssystem.hh>

Inheritance diagram for PositioningSystem:
APRSSystem GPSSystem

Signals

void modified ()
 Gets emitted if the GPS system is modified.
 

Public Member Functions

virtual ~PositioningSystem ()
 Destructor.
 
template<class System >
bool is () const
 Returns true if this positioning system is an instance of the specified system.
 
template<class System >
System * as ()
 Casts this positioning system to an instance of the specified system.
 
template<class System >
const System * as () const
 Casts this positioning system to an instance of the specified system.
 
const QString & name () const
 Returns the name of the GPS system.
 
void setName (const QString &name)
 Sets the name of the GPS system.
 
uint period () const
 Returns the update period in seconds.
 
void setPeriod (uint period)
 Sets the update period in seconds.
 

Protected Member Functions

 PositioningSystem (const QString &name, uint period=300, QObject *parent=nullptr)
 Hidden constructor. More...
 

Protected Attributes

QString _name
 Holds the name of the GPS system.
 
uint _period
 Holds the update period in seconds.
 

Detailed Description

Base class of the positioning systems, that is APRS and DMR position reporting system.

Constructor & Destructor Documentation

◆ PositioningSystem()

PositioningSystem::PositioningSystem ( const QString &  name,
uint  period = 300,
QObject *  parent = nullptr 
)
explicitprotected

Hidden constructor.

The PositioningSystem class is not instantiated directly, use either GPSSystem or APRSSystem instead.

Parameters
nameSpecifies the name of the system.
periodSpecifies the auto-update period in seconds.
parentSpecified the QObject parent object.

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