Last change
on this file was 325, checked in by DHERBOMEZ Gérald, 10 years ago |
correction of syntax error (interface => anInterface)
|
-
Property svn:executable
set to
*
|
File size:
792 bytes
|
Rev | Line | |
---|
[153] | 1 | #ifndef CONNECTIONBASE_H
|
---|
| 2 | #define CONNECTIONBASE_H
|
---|
[89] | 3 |
|
---|
[102] | 4 | #include <Pacpus/kernel/pacpus.h>
|
---|
[89] | 5 |
|
---|
| 6 | namespace pacpus {
|
---|
| 7 |
|
---|
[96] | 8 | class AbstractInterface;
|
---|
[89] | 9 |
|
---|
[102] | 10 | class PACPUSLIB_API ConnectionBase
|
---|
[89] | 11 | {
|
---|
| 12 | public:
|
---|
[325] | 13 | ConnectionBase(AbstractInterface * anInterface, int priority)
|
---|
| 14 | : m_interface(anInterface)
|
---|
[153] | 15 | , m_priority(priority)
|
---|
| 16 | {}
|
---|
[89] | 17 |
|
---|
[153] | 18 | ~ConnectionBase()
|
---|
| 19 | {}
|
---|
[89] | 20 |
|
---|
[153] | 21 | AbstractInterface * getInterface() const
|
---|
| 22 | {
|
---|
| 23 | return m_interface;
|
---|
| 24 | }
|
---|
[89] | 25 |
|
---|
[153] | 26 | int getPriority() const
|
---|
| 27 | {
|
---|
| 28 | return m_priority;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | bool operator==(ConnectionBase const &c)
|
---|
| 32 | {
|
---|
| 33 | return getInterface() == c.getInterface()
|
---|
| 34 | && getPriority() == c.getPriority()
|
---|
| 35 | ;
|
---|
| 36 | }
|
---|
| 37 |
|
---|
[89] | 38 | private:
|
---|
[153] | 39 | AbstractInterface * m_interface;
|
---|
| 40 | int m_priority;
|
---|
[89] | 41 | };
|
---|
| 42 |
|
---|
| 43 | } // namespace pacpus
|
---|
| 44 |
|
---|
[153] | 45 | #endif // CONNECTIONBASE_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.