| 
							 QtPdCom
								 1.5.0
							 
						 | 
					
Model for capturing broadcast messages. More...
#include <BroadcastModel.h>


Public Types | |
| enum | Roles { DateStringRole = Qt::UserRole + 1, MessageStringRole, UsernameRole } | 
Public Member Functions | |
| BroadcastModel (QObject *parent=nullptr) | |
| ~BroadcastModel () | |
| int | rowCount (const QModelIndex &={}) const override | 
| int | columnCount (const QModelIndex &={}) const override | 
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override | 
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override | 
| void | connectProcess (QtPdCom::Process *process) | 
| Connect to a Process.  More... | |
| QtPdCom::Process * | getProcess () const | 
| Q_INVOKABLE void | clear () | 
| Clear all stored broadcasts.  More... | |
| Q_ENUM (Roles) | |
| QHash< int, QByteArray > | roleNames () const override | 
Properties | |
| QtPdCom::Process | process | 
Private Member Functions | |
| Q_DECLARE_PRIVATE (BroadcastModel) | |
Private Attributes | |
| QScopedPointer< BroadcastModelPrivate > const | d_ptr | 
Model for capturing broadcast messages.
It contains three columns (date, message, username). Please note that broadcasts have to be enabled in pdserv.
      
  | 
  explicit | 
      
  | 
  default | 
| void BroadcastModel::clear | ( | ) | 
Clear all stored broadcasts.
      
  | 
  override | 
| void BroadcastModel::connectProcess | ( | QtPdCom::Process * | process | ) | 
Connect to a Process.
The old Process will be disconnected.
| process | New Process. | 
References QtPdCom::Process::broadcastReceived().
      
  | 
  override | 
References DateStringRole, MessageStringRole, and UsernameRole.
| QtPdCom::Process * BroadcastModel::getProcess | ( | ) | const | 
      
  | 
  override | 
References DateStringRole, MessageStringRole, and UsernameRole.
      
  | 
  private | 
| QtPdCom::BroadcastModel::Q_ENUM | ( | Roles | ) | 
      
  | 
  override | 
References DateStringRole, MessageStringRole, and UsernameRole.
      
  | 
  override | 
      
  | 
  private | 
      
  | 
  readwrite |