QGIS API Documentation
3.20.0-Odense (decaadbb31)
src
gui
qgsprovidersourcewidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprovidersourcewidget.h
3
---------------
4
begin : December 2020
5
copyright : (C) 2020 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
#ifndef QGSPROVIDERSOURCEWIDGET_H
18
#define QGSPROVIDERSOURCEWIDGET_H
19
20
#include <QWidget>
21
#include "qgis_gui.h"
22
#include "
qgis_sip.h
"
23
30
class
GUI_EXPORT
QgsProviderSourceWidget
:
public
QWidget
31
{
32
Q_OBJECT
33
34
public
:
35
39
QgsProviderSourceWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
40
46
virtual
void
setSourceUri
(
const
QString &uri ) = 0;
47
53
virtual
QString
sourceUri
()
const
= 0;
54
55
signals:
56
63
void
validChanged
(
bool
isValid );
64
65
};
66
#endif
//QGSPROVIDERSOURCEWIDGET_H
QgsProviderSourceWidget
Base class for widgets which allow customization of a provider's source URI.
Definition:
qgsprovidersourcewidget.h:31
QgsProviderSourceWidget::validChanged
void validChanged(bool isValid)
Emitted whenever the validation status of the widget changes.
QgsProviderSourceWidget::sourceUri
virtual QString sourceUri() const =0
Returns the source URI as currently defined by the widget.
QgsProviderSourceWidget::setSourceUri
virtual void setSourceUri(const QString &uri)=0
Sets the source uri to show in the widget.
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition:
qgis_sip.h:53
Generated on Sun Jun 20 2021 10:45:59 for QGIS API Documentation by
1.9.1