|
LibDMRConf
0.6.0
A library to program DMR radios.
|
Represents an APRS system wihtin the generic config. More...
#include <gpssystem.hh>
Public Types | |
| enum | Icon { APRS_ICON_POLICE_STN = (PRIMARY_TABLE | 0), APRS_ICON_NO_SYMBOL, APRS_ICON_DIGI, APRS_ICON_PHONE, APRS_ICON_DX_CLUSTER, APRS_ICON_HF_GATEWAY, APRS_ICON_PLANE_SMALL, APRS_ICON_MOB_SAT_STN, APRS_ICON_WHEEL_CHAIR, APRS_ICON_SNOWMOBILE, APRS_ICON_RED_CROSS, APRS_ICON_BOY_SCOUT, APRS_ICON_HOME, APRS_ICON_X, APRS_ICON_RED_DOT, APRS_ICON_CIRCLE_0, APRS_ICON_CIRCLE_1, APRS_ICON_CIRCLE_2, APRS_ICON_CIRCLE_3, APRS_ICON_CIRCLE_4, APRS_ICON_CIRCLE_5, APRS_ICON_CIRCLE_6, APRS_ICON_CIRCLE_7, APRS_ICON_CIRCLE_8, APRS_ICON_CIRCLE_9, APRS_ICON_FIRE, APRS_ICON_CAMPGROUND, APRS_ICON_MOTORCYCLE, APRS_ICON_RAIL_ENGINE, APRS_ICON_CAR, APRS_ICON_FILE_SERVER, APRS_ICON_HC_FUTURE, APRS_ICON_AID_STN, APRS_ICON_BBS, APRS_ICON_CANOE, APRS_ICON_EYEBALL = (PRIMARY_TABLE | 36), APRS_ICON_TRACTOR, APRS_ICON_GRID_SQ, APRS_ICON_HOTEL, APRS_ICON_TCP_IP, APRS_ICON_SCHOOL = (PRIMARY_TABLE | 42), APRS_ICON_USER_LOGON, APRS_ICON_MAC, APRS_ICON_NTS_STN, APRS_ICON_BALLOON, APRS_ICON_POLICE, APRS_ICON_TBD, APRX_ICON_RV, APRS_ICON_SHUTTLE, APRS_ICON_SSTV, APRS_ICON_BUS, APRS_ICON_ATV, APRS_ICON_WX_SERVICE, APRS_ICON_HELO, APRS_ICON_YACHT, APRS_ICON_WIN, APRS_ICON_JOGGER, APRS_ICON_TRIANGLE, APRS_ICON_PBBS, APRS_ICON_PLANE_LARGE, APRS_ICON_WX_STN, APRS_ICON_DISH_ANT, APRS_ICON_AMBULANCE, APRS_ICON_BIKE, APRS_ICON_ICP, APRS_ICON_FIRE_STATION, APRS_ICON_HORSE, APRS_ICON_FIRE_TRUCK, APRS_ICON_GLIDER, APRS_ICON_HOSPITAL, APRS_ICON_IOTA, APRS_ICON_JEEP, APRS_ICON_TRUCK_SMALL, APRS_ICON_LAPTOP, APRS_ICON_MIC_E, APRS_ICON_NODE, APRS_ICON_EOC, APRS_ICON_ROVER, APRS_ICON_GRID, APRS_ICON_ANTENNA, APRS_ICON_POWER_BOAT, APRS_ICON_TRUCK_STOP, APRS_ICON_TUCK_LARGE, APRS_ICON_VAN, APRS_ICON_WATER, APRS_ICON_XAPRS, APRS_ICON_YAGI, APRS_ICON_SHELTER } |
| All implemented APRS icons. | |
Public Member Functions | |
| APRSSystem (const QString &name, AnalogChannel *channel, const QString &dest, uint destSSID, const QString &src, uint srcSSID, const QString &path="", Icon icon=APRS_ICON_JOGGER, const QString &message="", uint period=300, QObject *parent=nullptr) | |
| Constructor for a APRS system. More... | |
| AnalogChannel * | channel () const |
| Returns the transmit channel of the APRS system. | |
| void | setChannel (AnalogChannel *channel) |
| Sets the transmit channel of the APRS system. | |
| const QString & | destination () const |
| Retruns the destination call. | |
| uint | destSSID () const |
| Returns the destination SSID. | |
| void | setDestination (const QString &call, uint ssid) |
| Sets the destination call and SSID. | |
| const QString & | source () const |
| Returns the source call. | |
| uint | srcSSID () const |
| Returns the source SSID. | |
| void | setSource (const QString &call, uint ssid) |
| Sets the source call and SSID. | |
| const QString & | path () const |
| Retruns the APRS path. | |
| void | setPath (const QString &path) |
| Sets the APRS path. | |
| Icon | icon () const |
| Returns the map icon. | |
| void | setIcon (Icon icon) |
| Sets the map icon. | |
| const QString & | message () const |
| Retunrs the optional message. | |
| void | setMessage (const QString &msg) |
| Sets the optional APRS message text. | |
Public Member Functions inherited from PositioningSystem | |
| 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. | |
Static Public Attributes | |
| static const uint | PRIMARY_TABLE = (0<<8) |
| Primary icon table flag. | |
| static const uint | SECONDARY_TABLE = (1<<8) |
| Secondary icon table flag. | |
| static const uint | TABLE_MASK = (3<<8) |
| Bitmask for icon table flags. | |
| static const uint | ICON_MASK = 0x7f |
| Bitmask for the icon table entry. | |
Protected Slots | |
| void | onChannelDeleted (QObject *obj) |
| Internal call-back if the transmit channel gets deleted. | |
Protected Attributes | |
| AnalogChannel * | _channel |
| A weak reference to the transmit channel. | |
| QString | _destination |
| Holds the destination call. | |
| uint | _destSSID |
| Holds the destination SSID. | |
| QString | _source |
| Holds the source call. | |
| uint | _srcSSID |
| Holds the source SSID. | |
| QString | _path |
| Holds the APRS path string. | |
| Icon | _icon |
| Holds the map icon. | |
| QString | _message |
| Holds the optional message. | |
Protected Attributes inherited from PositioningSystem | |
| QString | _name |
| Holds the name of the GPS system. | |
| uint | _period |
| Holds the update period in seconds. | |
Additional Inherited Members | |
Signals inherited from PositioningSystem | |
| void | modified () |
| Gets emitted if the GPS system is modified. | |
Protected Member Functions inherited from PositioningSystem | |
| PositioningSystem (const QString &name, uint period=300, QObject *parent=nullptr) | |
| Hidden constructor. More... | |
Represents an APRS system wihtin the generic config.
|
explicit |
Constructor for a APRS system.
| name | Specifies the name of the APRS system. This property is just a name, it does not affect the radio configuration. |
| channel | Specifies the transmit channel. This property is not optional. A transmit channel must be specified to obtain a working APRS system. |
| dest | Specifies the destination call, APRS messages are send to. Usually 'WIDE3' is a reasonable setting. |
| destSSID | Specifies the destination SSID. Usually 3 is a reasonable choice. |
| src | Specifies the source call, usually you call has to be entered here. |
| srcSSID | The source SSID, usually 7 is a reasonable choice of handhelds. |
| path | Specifies the APRS path string. |
| icon | Specifies the map icon to send. |
| message | An optional message to send. |
| period | Specifies the auto-update period in seconds. |
| parent | Specifies the QObject parent object. |
1.8.17