WCSConnectorDialog.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/ws/ogc/wcs/qt/WCSConnectorDialog.h
22 
23  \brief A dialog window for showing the WCS connector widget.
24 
25  \author Emerson Moraes
26 */
27 
28 #ifndef __TERRALIB_WS_OGC_WCS_QT_WCSCONNECTORDIALOG_H
29 #define __TERRALIB_WS_OGC_WCS_QT_WCSCONNECTORDIALOG_H
30 
31 // TerraLib
32 #ifndef Q_MOC_RUN
33 #include "../../../../dataaccess/datasource/DataSource.h"
34 #include "../../../../dataaccess/datasource/DataSourceInfo.h"
35 #endif
36 
37 #include "Config.h"
38 
39 // STL
40 #include <memory>
41 
42 // Qt
43 #include <QDialog>
44 
45 namespace Ui { class WCSConnectorDialogForm2; }
46 
47 namespace te
48 {
49  namespace ws
50  {
51  namespace ogc
52  {
53  namespace wcs
54  {
55  namespace qt
56  {
57  /*!
58  \class WCSConnectorDialog
59 
60  \brief A dialog window for showing the WCS connector widget.
61  */
62  class TEOGCWCSQTEXPORT WCSConnectorDialog : public QDialog
63  {
64  Q_OBJECT
65 
66  public:
67 
68  WCSConnectorDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
69 
71 
72  const te::da::DataSourceInfoPtr& getDataSource() const;
73 
74  const te::da::DataSourcePtr& getDriver() const;
75 
76  void set(const te::da::DataSourceInfoPtr& ds);
77 
78  public slots:
79 
80  void openPushButtonPressed();
81 
82  void testPushButtonPressed();
83 
84  void helpPushButtonPressed();
85 
86  void authCheckBoxStateChanged(const int& state);
87 
88  private:
89 
90  const std::string getConnectionInfo() const;
91 
92  private:
93 
94  std::auto_ptr<Ui::WCSConnectorDialogForm2> m_ui;
97  };
98  }
99  }
100  }
101  }
102 }
103 
104 #endif // __TERRALIB_WS_OGC_WCS_QT_WCSCONNECTORDIALOG_H
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1438
A dialog window for showing the WCS connector widget.
#define TEOGCWCSQTEXPORT
Definition: Config.h:66
std::auto_ptr< Ui::WCSConnectorDialogForm2 > m_ui
URI C++ Library.
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr