QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
QgsGPSConnectionRegistry Class Reference

A singleton class to register / unregister existing GPS connections such that the information is available to all classes and plugins. More...

#include <qgsgpsconnectionregistry.h>

Public Member Functions

 ~QgsGPSConnectionRegistry ()
 
QList< QgsGPSConnection * > connectionList () const
 
void registerConnection (QgsGPSConnection *c)
 Inserts a connection into the registry. More...
 
void unregisterConnection (QgsGPSConnection *c)
 Unregisters connection. More...
 

Static Public Member Functions

static QgsGPSConnectionRegistryinstance ()
 

Protected Member Functions

 QgsGPSConnectionRegistry ()
 

Protected Attributes

QSet< QgsGPSConnection * > mConnections
 

Static Protected Attributes

static QgsGPSConnectionRegistrymInstance
 

Detailed Description

A singleton class to register / unregister existing GPS connections such that the information is available to all classes and plugins.

Definition at line 29 of file qgsgpsconnectionregistry.h.

Constructor & Destructor Documentation

◆ ~QgsGPSConnectionRegistry()

QgsGPSConnectionRegistry::~QgsGPSConnectionRegistry ( )

Definition at line 25 of file qgsgpsconnectionregistry.cpp.

◆ QgsGPSConnectionRegistry()

QgsGPSConnectionRegistry::QgsGPSConnectionRegistry ( )
protected

Definition at line 21 of file qgsgpsconnectionregistry.cpp.

Member Function Documentation

◆ connectionList()

QList< QgsGPSConnection *> QgsGPSConnectionRegistry::connectionList ( ) const

Definition at line 46 of file qgsgpsconnectionregistry.cpp.

◆ instance()

QgsGPSConnectionRegistry * QgsGPSConnectionRegistry::instance ( )
static

Definition at line 30 of file qgsgpsconnectionregistry.cpp.

◆ registerConnection()

void QgsGPSConnectionRegistry::registerConnection ( QgsGPSConnection c)

Inserts a connection into the registry.

The connection is owned by the registry class until it is unregistered again

Definition at line 36 of file qgsgpsconnectionregistry.cpp.

◆ unregisterConnection()

void QgsGPSConnectionRegistry::unregisterConnection ( QgsGPSConnection c)

Unregisters connection.

The registry does no longer own the connection

Definition at line 41 of file qgsgpsconnectionregistry.cpp.

Member Data Documentation

◆ mConnections

QSet<QgsGPSConnection*> QgsGPSConnectionRegistry::mConnections
protected

Definition at line 47 of file qgsgpsconnectionregistry.h.

◆ mInstance

QgsGPSConnectionRegistry* QgsGPSConnectionRegistry::mInstance
staticprotected

Definition at line 45 of file qgsgpsconnectionregistry.h.


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