ApplicationListener.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/plugins/ApplicationListener.h
22 
23  \brief A listener of application framework. It is used to listen events sent by the application framework.
24 */
25 
26 #ifndef __TERRALIB_QT_PLUGINS_EDIT_INTERNAL_APPLICATIONLISTENER_H
27 #define __TERRALIB_QT_PLUGINS_EDIT_INTERNAL_APPLICATIONLISTENER_H
28 
29 // Terralib
30 #include "../../../common/Singleton.h"
31 
32 // Qt
33 #include <QObject>
34 
35 namespace te
36 {
37  namespace qt
38  {
39 // Forward declaration
40  namespace af
41  {
42  namespace evt
43  {
44  struct Event;
45  }
46  }
47 
48  namespace plugins
49  {
50  namespace edit
51  {
52  /*!
53  \class ApplicationListener
54 
55  \brief A listener of application framework. It is used to listen events sent by the application framework.
56  */
57  class ApplicationListener : public QObject, public te::common::Singleton<ApplicationListener>
58  {
59  Q_OBJECT
60 
62 
63  protected:
64 
65  /*! \brief It initializes the singleton instance of the application framework listener. */
67 
68  /*! \brief Singleton destructor. */
70 
71  protected slots:
72 
74  };
75 
76  } // end namespace edit
77  } // end namespace plugins
78  } // end namespace qt
79 } // end namespace te
80 
81 #endif // __TERRALIB_QT_PLUGINS_EDIT_INTERNAL_APPLICATIONLISTENER_H
A base class for application events.
Definition: Event.h:59
~ApplicationListener()
Singleton destructor.
URI C++ Library.
ApplicationListener()
It initializes the singleton instance of the application framework listener.
void onApplicationTriggered(te::qt::af::evt::Event *e)
A listener of application framework. It is used to listen events sent by the application framework...
Template support for singleton pattern.
Definition: Singleton.h:100