Loading...
Searching...
No Matches
ApplicationDockerConnector.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 TerraView - A GIS Application.
4
5 TerraView is free software: you can redistribute it and/or modify
6 it under the terms of the GNU 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 TerraView 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 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with TerraLib Code Editor. See COPYING. If not, write to
17 TerraLib Team at <terralib-team@dpi.inpe.br>.
18 */
19
20/*!
21 \file terralib/qt/af/connectors/ApplicationDockerConnector.h
22
23 \brief A connector for the te::qt::af::ApplicationDockerController class to the Application Framework.
24*/
25
26#ifndef __TERRALIB_QT_AF_CONNECTORS_INTERNAL_APPLICATIONDOCKERCONNECTOR_H
27#define __TERRALIB_QT_AF_CONNECTORS_INTERNAL_APPLICATIONDOCKERCONNECTOR_H
28
29// Terralib
30#include "../Config.h"
31
32// Qt
33#include <QtCore/QObject>
34
35namespace te
36{
37 namespace qt
38 {
39 namespace af
40 {
41 class ApplicationController;
42 class ApplicationDockerController;
43
44 namespace evt
45 {
46 // Forward declarations
47 struct Event;
48 }
49
50 /*!
51 \class ApplicationDockerConnector
52
53 \brief A connector for the te::qt::af::ApplicationDockerController class to the Application Framework.
54
55 It is used to listen events sent by the application framework.
56 */
58 {
59 Q_OBJECT
60
61 public:
62
63 /*!
64 \brief Constructor.
65
66 \param controller te::qt::af::ApplicationDockerController to be listened.
67 */
69
70 /*! \brief Destructor. */
72
74
75 public slots:
76
77 /*!
78 \brief Listener to the application framewrork events.
79
80 \param evt An event sent by framework.
81 */
83
84
85 signals:
86
88
89 protected:
90
91 te::qt::af::ApplicationController* m_app; //!< Pointer to applicatin controller;
92
93 te::qt::af::ApplicationDockerController* m_controller; //!< Pointer to a component te::qt::af::ApplicationDockerController.
94
95 bool m_internalEvent; //!< Flag used for internal sent events
96 };
97
98 } // end namespace af
99 } // end namespace qt
100} // end namespace te
101
102#endif // __TERRALIB_QT_AF_CONNECTORS_INTERNAL_APPLICATIONDOCKERCONNECTOR_H
103
The base API for TerraLib applications.
A connector for the te::qt::af::ApplicationDockerController class to the Application Framework.
ApplicationDockerConnector(te::qt::af::ApplicationDockerController *controller, te::qt::af::ApplicationController *app, QObject *parent=0)
Constructor.
void triggered(te::qt::af::evt::Event *e)
void onApplicationTriggered(te::qt::af::evt::Event *evt)
Listener to the application framewrork events.
te::qt::af::ApplicationDockerController * m_controller
Pointer to a component te::qt::af::ApplicationDockerController.
te::qt::af::ApplicationController * m_app
Pointer to applicatin controller;.
bool m_internalEvent
Flag used for internal sent events.
te::qt::af::ApplicationDockerController * getController() const
The base API for docker controllers of TerraLib applications.
TerraLib.
#define slots
A base class for application events.
Definition: Event.h:60
#define TEQTAFEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:71