QGIS API Documentation  2.3.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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>

Collaboration diagram for QgsGPSConnectionRegistry:
Collaboration graph
[legend]

Public Member Functions

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

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 28 of file qgsgpsconnectionregistry.h.

Constructor & Destructor Documentation

QgsGPSConnectionRegistry::~QgsGPSConnectionRegistry ( )

Definition at line 25 of file qgsgpsconnectionregistry.cpp.

References mConnections.

QgsGPSConnectionRegistry::QgsGPSConnectionRegistry ( )
protected

Definition at line 21 of file qgsgpsconnectionregistry.cpp.

Member Function Documentation

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

Definition at line 50 of file qgsgpsconnectionregistry.cpp.

References mConnections.

QgsGPSConnectionRegistry * QgsGPSConnectionRegistry::instance ( )
static

Definition at line 34 of file qgsgpsconnectionregistry.cpp.

References mInstance.

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 40 of file qgsgpsconnectionregistry.cpp.

References mConnections.

void QgsGPSConnectionRegistry::unregisterConnection ( QgsGPSConnection c)

Unregisters connection.

The registry does no longer own the connection

Definition at line 45 of file qgsgpsconnectionregistry.cpp.

References mConnections.

Member Data Documentation

QSet<QgsGPSConnection*> QgsGPSConnectionRegistry::mConnections
protected
QgsGPSConnectionRegistry* QgsGPSConnectionRegistry::mInstance
staticprotected

Definition at line 44 of file qgsgpsconnectionregistry.h.

Referenced by instance().


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