1 | // %pacpus:license{
|
---|
2 | // This file is part of the PACPUS framework distributed under the
|
---|
3 | // CECILL-C License, Version 1.0.
|
---|
4 | // %pacpus:license}
|
---|
5 | /// @file
|
---|
6 | /// @author Elie Al Alam <firstname.surname@utc.fr>
|
---|
7 | /// @author Gerald Dherbomez <firstname.surname@utc.fr>
|
---|
8 | /// @date April, 2007
|
---|
9 | /// @version $Id: DbtPlyTrigger.h 76 2013-01-10 17:05:10Z kurdejma $
|
---|
10 | /// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
|
---|
11 | /// @brief DbitePlayer trigger.
|
---|
12 | ///
|
---|
13 | /// Detailed description.
|
---|
14 |
|
---|
15 | #ifndef DEF_PACPUS_DBTPLYTRIGGER_H
|
---|
16 | #define DEF_PACPUS_DBTPLYTRIGGER_H
|
---|
17 |
|
---|
18 | #include <Pacpus/DbitePlayer/DbitePlayerConfig.h>
|
---|
19 | #include <Pacpus/DbitePlayer/DbtPlyEngine.h>
|
---|
20 | #include <Pacpus/kernel/ComponentBase.h>
|
---|
21 | #include <Pacpus/kernel/ComponentFactory.h>
|
---|
22 |
|
---|
23 | #include <QString>
|
---|
24 | #include <QThread>
|
---|
25 |
|
---|
26 | #ifdef WIN32
|
---|
27 | # include <windows.h>
|
---|
28 | # include <mmsystem.h>
|
---|
29 | #endif
|
---|
30 |
|
---|
31 | namespace pacpus
|
---|
32 | {
|
---|
33 |
|
---|
34 | class DbtPlyEngine;
|
---|
35 |
|
---|
36 | class DBITE_PLAYER_API DbtPlyTrigger
|
---|
37 | : public QThread // FIXME: remove QThread
|
---|
38 | , public ComponentBase
|
---|
39 | {
|
---|
40 | Q_OBJECT
|
---|
41 |
|
---|
42 | public:
|
---|
43 | /// @todo Documentation
|
---|
44 | DbtPlyTrigger(QString name);
|
---|
45 | /// @todo Documentation
|
---|
46 | virtual ~DbtPlyTrigger();
|
---|
47 |
|
---|
48 | /// @todo Documentation
|
---|
49 | virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
|
---|
50 |
|
---|
51 | /// @todo Documentation
|
---|
52 | virtual void run();
|
---|
53 |
|
---|
54 | Q_SIGNALS:
|
---|
55 | /// @todo Documentation
|
---|
56 | void triggerSig();
|
---|
57 |
|
---|
58 | protected:
|
---|
59 | virtual void addInputs();
|
---|
60 | virtual void addOutputs();
|
---|
61 |
|
---|
62 | /// @todo Documentation
|
---|
63 | virtual void startActivity();
|
---|
64 | /// @todo Documentation
|
---|
65 | virtual void stopActivity();
|
---|
66 |
|
---|
67 | private:
|
---|
68 | boost::shared_ptr<DbtPlyEngine> mEngine;
|
---|
69 | };
|
---|
70 |
|
---|
71 | } // namespace pacpus
|
---|
72 |
|
---|
73 | #endif // DEF_PACPUS_DBTPLYTRIGGER_H
|
---|