| 22 | #endif |
| 23 | |
| 24 | void Server::addService(Service *service) |
| 25 | { |
| 26 | if (m_firstService == NULL) |
| 27 | { |
| 28 | m_firstService = service; |
| 29 | } |
| 30 | else |
| 31 | { |
| 32 | |
| 33 | Service *link = m_firstService; |
| 34 | while (link->getNext() != NULL) |
| 35 | { |
| 36 | link = link->getNext(); |
| 37 | } |
| 38 | |
| 39 | link->setNext(service); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | void Server::removeService(Service *service) |
| 44 | { |