|
Last change
on this file since 173 was 153, checked in by Marek Kurdej, 12 years ago |
|
Fixed: C4996 unchecked iterator warning on MSVC.
|
-
Property svn:executable
set to
*
|
|
File size:
788 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 * interface, int priority)
|
|---|
| 14 | : m_interface(interface)
|
|---|
| 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.