1 | /*********************************************************************
|
---|
2 | // created: 2007/04/12 - 16:30
|
---|
3 |
|
---|
4 | //
|
---|
5 | // author: Elie Al Alam & Gerald Dherbomez
|
---|
6 | //
|
---|
7 | // version: $Id: DbtPlyGstManager.cpp 1203 2012-08-02 11:58:15Z morasjul $
|
---|
8 | //
|
---|
9 | // purpose: Dbite Player Gst Manager implementation
|
---|
10 | *********************************************************************/
|
---|
11 |
|
---|
12 | #include "DbtPlyGstManager.h"
|
---|
13 |
|
---|
14 | #include <qapplication.h>
|
---|
15 |
|
---|
16 | //#include "kernel/ComponentManager.h"
|
---|
17 |
|
---|
18 | namespace pacpus {
|
---|
19 |
|
---|
20 | // Construction de la fabrique de composant DbtPlyTrigger
|
---|
21 | static ComponentFactory<DbtPlyGstManager> sFactory("DbtPlyGstManager");
|
---|
22 |
|
---|
23 | DbtPlyGstManager::DbtPlyGstManager(QString name)
|
---|
24 | : DbtPlyFileManager (name)
|
---|
25 | {
|
---|
26 |
|
---|
27 | }
|
---|
28 |
|
---|
29 | DbtPlyGstManager::~DbtPlyGstManager()
|
---|
30 | {
|
---|
31 |
|
---|
32 | }
|
---|
33 |
|
---|
34 | void DbtPlyGstManager::processData(road_time_t /*t*/, road_timerange_t /*tr*/ , void * buf)
|
---|
35 | {
|
---|
36 | // no data available
|
---|
37 | if (buf == NULL)
|
---|
38 | return;
|
---|
39 |
|
---|
40 | val = (trame_gst*)(buf);
|
---|
41 |
|
---|
42 | }
|
---|
43 |
|
---|
44 | ComponentBase::COMPONENT_CONFIGURATION DbtPlyGstManager::configureComponent(XmlComponentConfig config)
|
---|
45 | {
|
---|
46 | DbtPlyFileManager::configureComponent(config);
|
---|
47 |
|
---|
48 | return ComponentBase::CONFIGURED_OK;
|
---|
49 | }
|
---|
50 |
|
---|
51 |
|
---|
52 | void DbtPlyGstManager::startActivity()
|
---|
53 | {
|
---|
54 | DbtPlyFileManager::startActivity();
|
---|
55 |
|
---|
56 | // user interface
|
---|
57 | if (mShowGui)
|
---|
58 | displayUI();
|
---|
59 |
|
---|
60 | }
|
---|
61 |
|
---|
62 |
|
---|
63 | void DbtPlyGstManager::stopActivity()
|
---|
64 | {
|
---|
65 | DbtPlyFileManager::stopActivity();
|
---|
66 | }
|
---|
67 |
|
---|
68 |
|
---|
69 |
|
---|
70 | void DbtPlyGstManager::displayUI()
|
---|
71 | {
|
---|
72 | // todo
|
---|
73 | printf (" No graphical interface implemented\n");
|
---|
74 | }
|
---|
75 |
|
---|
76 | } // namespace pacpus
|
---|