Last change
on this file since 330 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
|
Line | |
---|
1 | #ifndef CONNECTIONBASE_H
|
---|
2 | #define CONNECTIONBASE_H
|
---|
3 |
|
---|
4 | #include <Pacpus/kernel/pacpus.h>
|
---|
5 |
|
---|
6 | namespace pacpus {
|
---|
7 |
|
---|
8 | class AbstractInterface;
|
---|
9 |
|
---|
10 | class PACPUSLIB_API ConnectionBase
|
---|
11 | {
|
---|
12 | public:
|
---|
13 | ConnectionBase(AbstractInterface * anInterface, int priority)
|
---|
14 | : m_interface(anInterface)
|
---|
15 | , m_priority(priority)
|
---|
16 | {}
|
---|
17 |
|
---|
18 | ~ConnectionBase()
|
---|
19 | {}
|
---|
20 |
|
---|
21 | AbstractInterface * getInterface() const
|
---|
22 | {
|
---|
23 | return m_interface;
|
---|
24 | }
|
---|
25 |
|
---|
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 |
|
---|
38 | private:
|
---|
39 | AbstractInterface * m_interface;
|
---|
40 | int m_priority;
|
---|
41 | };
|
---|
42 |
|
---|
43 | } // namespace pacpus
|
---|
44 |
|
---|
45 | #endif // CONNECTIONBASE_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.