fw4spl
Bundles/ui/guiQt/include/guiQt/Plugin.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __GUIQT_PLUGIN_HPP__
8 #define __GUIQT_PLUGIN_HPP__
9 
10 #include "guiQt/config.hpp"
11 
12 #include <fwRuntime/Plugin.hpp>
13 
14 
15 namespace fwThread
16 {
17 class Worker;
18 } //namespace fwThread
19 
20 
21 namespace guiQt
22 {
27 class GUIQT_CLASS_API Plugin : public ::fwRuntime::Plugin
28 {
29 
30 public:
31 
35  GUIQT_API ~Plugin() noexcept;
36 
37  // Overrides
38  GUIQT_API void start();
39 
40  // Overrides
41  GUIQT_API void stop() noexcept;
42 
43 
44  GUIQT_API int run() noexcept;
45 
46 protected:
47 
48  GUIQT_API void loadStyleSheet();
49 
50 private:
51 
52  SPTR(::fwThread::Worker) m_workerQt;
53 
54 };
55 
56 } // namespace guiQt
57 
58 #endif //__GUIQT_PLUGIN_HPP__
#define SPTR(_cls_)
Provides a default plugin implementation.
This class is called when the guiQt bundle is loaded.
This class creates and manages a task loop. The default implementation create a loop in a new thread...
Definition: Worker.hpp:32
This namespace fwThread provides few tools to execute asynchronous tasks on different threads...
The namespace guiQt contains the basic services to build the application IHM with Qt...
Definition: Code.hpp:21