Loading...
Searching...
No Matches
DataSourceType.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/qt/widgets/datasource/connector/core/DataSourceType.h
22
23 \brief A base class for the suppported types of data source.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_DATASOURCE_CONNECTOR_CORE_INTERNAL_DATASOURCETYPE_H
27#define __TERRALIB_QT_WIDGETS_DATASOURCE_CONNECTOR_CORE_INTERNAL_DATASOURCETYPE_H
28
29// TerraLib
30#include "../../Config.h"
31
32// STL
33#include <map>
34#include <string>
35
36// Qt
37#include <QIcon>
38#include <QWidget>
39
40namespace te
41{
42 namespace qt
43 {
44 namespace widgets
45 {
46 /*!
47 \class DataSourceType
48
49 \brief A base class for the suppported types of data source.
50
51 \ingroup widgets
52 */
54 {
55 public:
56
57 enum
58 {
61 };
62
63 enum
64 {
66 ICON_DATASOURCE_CONNECTOR
67 };
68
70
71 virtual ~DataSourceType();
72
73 virtual bool hasDatabaseSupport() const = 0;
74
75 virtual bool hasFileSupport() const = 0;
76
77 virtual bool hasRasterSupport() const = 0;
78
79 virtual bool hasVectorialSupport() const = 0;
80
81 virtual std::string getName() const = 0;
82
83 virtual std::string getTitle() const = 0;
84
85 virtual std::string getDescription() const = 0;
86
87 virtual void getSupportedExtensions(std::string& driverName, std::vector<std::string>& extensions);
88
89 virtual QWidget* getWidget(int widgetType, QWidget* parent = 0, Qt::WindowFlags f = 0) const = 0;
90
91 virtual QIcon getIcon(int iconType ) const = 0;
92
93 bool operator<(const DataSourceType& rhs) const;
94 };
95 } // end namespace widgets
96 } // end namespace qt
97} // end namespace te
98
99#endif // __TERRALIB_QT_WIDGETS_DATASOURCE_CONNECTOR_CORE_INTERNAL_DATASOURCETYPE_H
A base class for the suppported types of data source.
virtual std::string getDescription() const =0
bool operator<(const DataSourceType &rhs) const
virtual void getSupportedExtensions(std::string &driverName, std::vector< std::string > &extensions)
virtual bool hasFileSupport() const =0
virtual QWidget * getWidget(int widgetType, QWidget *parent=0, Qt::WindowFlags f=0) const =0
virtual bool hasDatabaseSupport() const =0
virtual bool hasVectorialSupport() const =0
virtual bool hasRasterSupport() const =0
virtual std::string getTitle() const =0
virtual std::string getName() const =0
virtual QIcon getIcon(int iconType) const =0
TerraLib.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63