Last change
on this file since 89 was 89, checked in by morasjul, 11 years ago |
PACPUS 2.0 Beta deployed in new branch
Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support
|
-
Property svn:executable
set to
*
|
File size:
730 bytes
|
Rev | Line | |
---|
[89] | 1 | #ifndef Communication_Component_H
|
---|
| 2 | #define Communication_Component_H
|
---|
| 3 |
|
---|
| 4 | #include <Pacpus/kernel/ComponentBase.h>
|
---|
| 5 | #include <Pacpus/kernel/Log.h>
|
---|
| 6 |
|
---|
| 7 | namespace pacpus {
|
---|
| 8 |
|
---|
| 9 | class CommunicationInterface : public ComponentBase
|
---|
| 10 | {
|
---|
| 11 | public:
|
---|
| 12 |
|
---|
| 13 | CommunicationInterface(QString );
|
---|
| 14 | virtual ~CommunicationInterface() = 0;
|
---|
| 15 |
|
---|
| 16 | virtual void stopActivity() = 0;
|
---|
| 17 | virtual void startActivity() = 0;
|
---|
| 18 | virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config) = 0;
|
---|
| 19 |
|
---|
| 20 | virtual void send(char* data, size_t size) = 0;
|
---|
| 21 | virtual void send(QByteArray) = 0;
|
---|
| 22 |
|
---|
| 23 | //virtual void setDataSize(size_t size) {_size = size;}
|
---|
| 24 | protected:
|
---|
| 25 | size_t _size;
|
---|
| 26 | };
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 | } // namespace pacpus
|
---|
| 30 |
|
---|
| 31 | #endif // Communication_Component_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.