QGIS API Documentation
2.0.1-Dufour
|
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 () | |
void | registerConnection (QgsGPSConnection *c) |
Inserts a connection into the registry. | |
void | unregisterConnection (QgsGPSConnection *c) |
Unregisters connection. | |
QList< QgsGPSConnection * > | connectionList () const |
Static Public Member Functions | |
static QgsGPSConnectionRegistry * | instance () |
Protected Member Functions | |
QgsGPSConnectionRegistry () |
Protected Attributes | |
QSet< QgsGPSConnection * > | mConnections |
Static Protected Attributes | |
static QgsGPSConnectionRegistry * | mInstance = 0 |
A singleton class to register / unregister existing GPS connections such that the information is available to all classes and plugins.
Definition at line 28 of file qgsgpsconnectionregistry.h.
QgsGPSConnectionRegistry::~QgsGPSConnectionRegistry | ( | ) |
Definition at line 28 of file qgsgpsconnectionregistry.cpp.
References mConnections.
|
protected |
Definition at line 23 of file qgsgpsconnectionregistry.cpp.
Referenced by instance().
QList< QgsGPSConnection * > QgsGPSConnectionRegistry::connectionList | ( | ) | const |
Definition at line 56 of file qgsgpsconnectionregistry.cpp.
References mConnections.
|
static |
Definition at line 37 of file qgsgpsconnectionregistry.cpp.
References mInstance, and QgsGPSConnectionRegistry().
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 46 of file qgsgpsconnectionregistry.cpp.
References mConnections.
void QgsGPSConnectionRegistry::unregisterConnection | ( | QgsGPSConnection * | c | ) |
Unregisters connection.
The registry does no longer own the connection
Definition at line 51 of file qgsgpsconnectionregistry.cpp.
References mConnections.
|
protected |
Definition at line 46 of file qgsgpsconnectionregistry.h.
Referenced by connectionList(), registerConnection(), unregisterConnection(), and ~QgsGPSConnectionRegistry().
|
staticprotected |
Definition at line 44 of file qgsgpsconnectionregistry.h.
Referenced by instance().