2004-10-21 22:30:56 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2004 by Lars Luthman
|
|
|
|
* larsl@users.sourceforge.net
|
|
|
|
* *
|
|
|
|
* This is a plugin generated from the QGIS plugin template *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
***************************************************************************/
|
|
|
|
#ifndef QGSGPSDEVICEDIALOG_H
|
|
|
|
#define QGSGPSDEVICEDIALOG_H
|
|
|
|
|
|
|
|
#include "qgsgpsdevicedialogbase.h"
|
2005-02-15 15:38:52 +00:00
|
|
|
#include "qgsgpsdevice.h"
|
2004-10-21 22:30:56 +00:00
|
|
|
|
|
|
|
#include <qstring.h>
|
|
|
|
|
|
|
|
|
|
|
|
class QgsGPSDeviceDialog : public QgsGPSDeviceDialogBase {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2005-02-15 15:38:52 +00:00
|
|
|
QgsGPSDeviceDialog(std::map<QString, QgsGPSDevice*>& devices);
|
2004-10-21 22:30:56 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void slotNewDevice();
|
|
|
|
void slotDeleteDevice();
|
|
|
|
void slotUpdateDevice();
|
|
|
|
void slotUpdateDeviceList(const QString& selection = "");
|
|
|
|
void slotSelectionChanged();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void devicesChanged();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void writeDeviceSettings();
|
2005-02-15 15:38:52 +00:00
|
|
|
|
|
|
|
std::map<QString, QgsGPSDevice*>& mDevices;
|
2004-10-21 22:30:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|