QGIS API Documentation 3.39.0-Master (47f7b3a4989)
Loading...
Searching...
No Matches
qgsgdalguiutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsgdalguiutils.h
3 -------------------
4 begin : Mon Jan 2 2009
5 copyright : (C) 2009 by Godofredo Contreras Nava
6 email : frdcn at hotmail.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
18#ifndef QGSGDALGUIUTILS_H
19#define QGSGDALGUIUTILS_H
20
21#include <QString>
22#include "qgis_gui.h"
23
24class QWidget;
25class QgsGdalOption;
26
27#define SIP_NO_FILE
28
37class GUI_EXPORT QgsGdalGuiUtils
38{
39 public:
40
45 static QString createDatabaseURI( const QString &connectionType, const QString &host, const QString &database, QString port, const QString &configId, QString username, QString password, bool expandAuthConfig = false );
46
51 static QString createProtocolURI( const QString &type, const QString &url, const QString &configId, const QString &username, const QString &password, bool expandAuthConfig = false );
52
59 static QWidget *createWidgetForOption( const QgsGdalOption &option, QWidget *parent = nullptr, bool includeDefaultChoices = false );
60
61};
62
63#endif // QGSGDALGUIUTILS_H
Utility functions for working with GDAL in GUI classes.
Encapsulates the definition of a GDAL configuration option.