Downloads, periodically updates and provides a list of talk group IDs and their names.  
 More...
#include <talkgroupdatabase.hh>
|  | 
| void | download () | 
|  | Starts the download of the talk group database. 
 | 
|  | 
|  | 
| void | loaded () | 
|  | Gets emitted once the talk group database has been loaded. 
 | 
|  | 
| void | error (const QString &msg) | 
|  | Gets emitted if the loading of the talk group database fails. 
 | 
|  | 
|  | 
|  | TalkGroupDatabase (unsigned updatePeriodDays=30, QObject *parent=nullptr) | 
|  | Constructs a talk group database.  More... 
 | 
|  | 
| qint64 | count () const | 
|  | Returns the number of talk groups. 
 | 
|  | 
| unsigned | dbAge () const | 
|  | Returns the age of the database in days. 
 | 
|  | 
| TalkGroup | talkgroup (int index) const | 
|  | Returns the talk group entry at the given index. 
 | 
|  | 
| bool | load () | 
|  | Loads all entries from the downloaded talk group db. 
 | 
|  | 
| bool | load (const QString &filename) | 
|  | Loads all entries from the talk group db at the specified location. 
 | 
|  | 
| int | rowCount (const QModelIndex &parent=QModelIndex()) const | 
|  | Implements the QAbstractTableModel interface, returns the number of rows (number of entries). 
 | 
|  | 
| int | columnCount (const QModelIndex &parent=QModelIndex()) const | 
|  | Implements the QAbstractTableModel interface, returns the number of columns. 
 | 
|  | 
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const | 
|  | Implements the QAbstractTableModel interface, return the entry data. 
 | 
|  | 
|  | 
| QVector< TalkGroup > | _talkgroups | 
|  | Holds all talk groups as id->name table. 
 | 
|  | 
| QNetworkAccessManager | _network | 
|  | The network access used for downloading. 
 | 
|  | 
Downloads, periodically updates and provides a list of talk group IDs and their names. 
◆ TalkGroupDatabase()
      
        
          | TalkGroupDatabase::TalkGroupDatabase | ( | unsigned | updatePeriodDays = 30, | 
        
          |  |  | QObject * | parent = nullptr | 
        
          |  | ) |  |  | 
      
 
Constructs a talk group database. 
- Parameters
- 
  
    | updatePeriodDays | Specifies the update period of the DB in days. |  | parent | Specifies the QObject parent. |  
 
 
 
The documentation for this class was generated from the following files:
- /home/hannes/Software/qdmr/lib/talkgroupdatabase.hh
- /home/hannes/Software/qdmr/lib/talkgroupdatabase.cc