~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Plugins/Plugin_HikariWidget/Plugin.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*!
2
 
        @file
3
 
        @author         Albert Semenov
4
 
        @date           10/2009
5
 
*/
6
 
 
7
 
#ifndef __PLUGIN_H__
8
 
#define __PLUGIN_H__
9
 
 
10
 
#include "HikariWidget.h"
11
 
#include "MyGUI_Plugin.h"
12
 
#include "KeyboardHookImpl.h"
13
 
 
14
 
/*!     Test plugin to demonstrate possibilities of plugins for MyGUI
15
 
*/
16
 
namespace plugin
17
 
{
18
 
 
19
 
        class Plugin :
20
 
                public MyGUI::IPlugin
21
 
        {
22
 
        public:
23
 
                Plugin();
24
 
                ~Plugin();
25
 
 
26
 
        public:
27
 
                //!     Initialization
28
 
                virtual void initialize();
29
 
 
30
 
                //!     Installation
31
 
                virtual void install();
32
 
 
33
 
                //!     Shut down
34
 
                virtual void shutdown();
35
 
 
36
 
                //!     Uninstall
37
 
                virtual void uninstall();
38
 
 
39
 
                //! Get name
40
 
                virtual const std::string& getName() const;
41
 
 
42
 
                static HMODULE getLibHandle()
43
 
                {
44
 
                        return msFlashLib;
45
 
                }
46
 
 
47
 
        public:
48
 
                static const std::string LogSection;
49
 
 
50
 
        private:
51
 
                static HMODULE msFlashLib;
52
 
                HookListenerImpl mHookListenerImpl;
53
 
                KeyboardHook* mKeyboardHook;
54
 
 
55
 
        };
56
 
 
57
 
} // namespace plugin
58
 
 
59
 
#endif // __PLUGIN_H__
 
1
/*!
 
2
        @file
 
3
        @author         Albert Semenov
 
4
        @date           10/2009
 
5
*/
 
6
 
 
7
#ifndef __PLUGIN_H__
 
8
#define __PLUGIN_H__
 
9
 
 
10
#include "HikariWidget.h"
 
11
#include "MyGUI_Plugin.h"
 
12
#include "KeyboardHookImpl.h"
 
13
 
 
14
/*!     Test plugin to demonstrate possibilities of plugins for MyGUI
 
15
*/
 
16
namespace plugin
 
17
{
 
18
 
 
19
        class Plugin :
 
20
                public MyGUI::IPlugin
 
21
        {
 
22
        public:
 
23
                Plugin();
 
24
                ~Plugin();
 
25
 
 
26
        public:
 
27
                //!     Initialization
 
28
                virtual void initialize();
 
29
 
 
30
                //!     Installation
 
31
                virtual void install();
 
32
 
 
33
                //!     Shut down
 
34
                virtual void shutdown();
 
35
 
 
36
                //!     Uninstall
 
37
                virtual void uninstall();
 
38
 
 
39
                //! Get name
 
40
                virtual const std::string& getName() const;
 
41
 
 
42
                static HMODULE getLibHandle()
 
43
                {
 
44
                        return msFlashLib;
 
45
                }
 
46
 
 
47
        public:
 
48
                static const std::string LogSection;
 
49
 
 
50
        private:
 
51
                static HMODULE msFlashLib;
 
52
                HookListenerImpl mHookListenerImpl;
 
53
                KeyboardHook* mKeyboardHook;
 
54
 
 
55
        };
 
56
 
 
57
} // namespace plugin
 
58
 
 
59
#endif // __PLUGIN_H__