QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgsowsconnection.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsowsconnection.h - OWS connection
3  -------------------
4  begin : 3 April 2005
5  original : (C) 2005 by Brendan Morley email : morb at ozemail dot com dot au
6  wms search : (C) 2009 Mathias Walker <mwa at sourcepole.ch>, Sourcepole AG
7 
8  generalized : (C) 2012 Radim Blazek, based on qgswmsconnection.h
9 
10 
11  ***************************************************************************/
12 
13 /***************************************************************************
14  * *
15  * This program is free software; you can redistribute it and/or modify *
16  * it under the terms of the GNU General Public License as published by *
17  * the Free Software Foundation; either version 2 of the License, or *
18  * (at your option) any later version. *
19  * *
20  ***************************************************************************/
21 
22 #ifndef QGSOWSCONNECTION_H
23 #define QGSOWSCONNECTION_H
24 
25 #include "qgsdatasourceuri.h"
26 
27 #include <QStringList>
28 #include <QPushButton>
29 
30 class QgisApp;
31 //class QgsDataProvider;
32 class QgsDataProvider;
33 /*class QButtonGroup;*/
34 /*class QgsNumericSortTreeWidgetItem;*/
35 class QDomDocument;
36 class QDomElement;
37 
41 class CORE_EXPORT QgsOWSConnection : public QObject
42 {
43 // Q_OBJECT
44 
45  public:
51  QgsOWSConnection( const QString & theService, const QString & theConnName );
54 
55  static QStringList connectionList( const QString & theService );
56 
57  static void deleteConnection( const QString & theService, const QString & name );
58 
59  static QString selectedConnection( const QString & theService );
60  static void setSelectedConnection( const QString & theService, const QString & name );
61 
62  public:
63  //QgsDataProvider *provider();
64  QString connectionInfo();
65  QString mConnName;
66  QString mConnectionInfo;
67  QgsDataSourceURI uri();
68  private:
70  QString mService;
71 };
72 
73 
74 #endif // QGSOWSCONNECTION_H