QGIS API Documentation  master-3f58142
src/core/qgsowsconnection.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     qgsowsconnection.h  -  OWS connection
00003                              -------------------
00004     begin                : 3 April 2005
00005     original             : (C) 2005 by Brendan Morley email  : morb at ozemail dot com dot au
00006     wms search           : (C) 2009 Mathias Walker <mwa at sourcepole.ch>, Sourcepole AG
00007 
00008     generalized          : (C) 2012 Radim Blazek, based on qgswmsconnection.h
00009 
00010 
00011  ***************************************************************************/
00012 
00013 /***************************************************************************
00014  *                                                                         *
00015  *   This program is free software; you can redistribute it and/or modify  *
00016  *   it under the terms of the GNU General Public License as published by  *
00017  *   the Free Software Foundation; either version 2 of the License, or     *
00018  *   (at your option) any later version.                                   *
00019  *                                                                         *
00020  ***************************************************************************/
00021 
00022 #ifndef QGSOWSCONNECTION_H
00023 #define QGSOWSCONNECTION_H
00024 
00025 #include "qgsdatasourceuri.h"
00026 
00027 #include <QStringList>
00028 #include <QPushButton>
00029 
00030 class QgisApp;
00031 //class QgsDataProvider;
00032 class QgsDataProvider;
00033 /*class QButtonGroup;*/
00034 /*class QgsNumericSortTreeWidgetItem;*/
00035 class QDomDocument;
00036 class QDomElement;
00037 
00041 class CORE_EXPORT QgsOWSConnection : public QObject
00042 {
00043 //    Q_OBJECT
00044 
00045   public:
00051     QgsOWSConnection( const QString & theService, const QString & theConnName );
00053     ~QgsOWSConnection();
00054 
00055     static QStringList connectionList( const QString & theService );
00056 
00057     static void deleteConnection( const QString & theService, const QString & name );
00058 
00059     static QString selectedConnection( const QString & theService );
00060     static void setSelectedConnection( const QString & theService, const QString & name );
00061 
00062   public:
00063     //QgsDataProvider *provider();
00064     QString connectionInfo();
00065     QString mConnName;
00066     QString mConnectionInfo;
00067     QgsDataSourceURI uri();
00068   private:
00069     QgsDataSourceURI mUri;
00070     QString mService;
00071 };
00072 
00073 
00074 #endif // QGSOWSCONNECTION_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines