2015-07-29 11:52:14 +02:00
|
|
|
/** A singleton class to register / unregister existing GPS connections such that the information
|
2012-09-24 02:28:15 +02:00
|
|
|
is available to all classes and plugins*/
|
|
|
|
class QgsGPSConnectionRegistry {
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsgpsconnectionregistry.h>
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
static QgsGPSConnectionRegistry* instance();
|
|
|
|
~QgsGPSConnectionRegistry();
|
|
|
|
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Inserts a connection into the registry. The connection is owned by the registry class until it is unregistered again*/
|
2012-09-24 02:28:15 +02:00
|
|
|
void registerConnection( QgsGPSConnection* c );
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Unregisters connection. The registry does no longer own the connection*/
|
2012-09-24 02:28:15 +02:00
|
|
|
void unregisterConnection( QgsGPSConnection* c );
|
|
|
|
|
|
|
|
QList< QgsGPSConnection *> connectionList() const;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
QgsGPSConnectionRegistry();
|
2016-01-22 18:45:45 +11:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
QgsGPSConnectionRegistry( const QgsGPSConnectionRegistry& rh );
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|