1
/***************************************************************************
2
* Copyright (C) 2004-2006 by Marc Boris Duerner *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU Library General Public License as *
6
* published by the Free Software Foundation; either version 2 of the *
7
* License, or (at your option) any later version. *
9
* This program is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
14
* You should have received a copy of the GNU Library General Public *
15
* License along with this program; if not, write to the *
16
* Free Software Foundation, Inc., *
17
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
18
**************************************************************************/
19
#include "cxxtools/connectable.h"
20
#include "cxxtools/connection.h"
24
Connectable::Connectable()
28
Connectable::Connectable(const Connectable& c)
34
Connectable::~Connectable()
40
void Connectable::clear()
42
while( !_connections.empty() )
44
Connection connection = _connections.front();
50
Connectable& Connectable::operator=(const Connectable& other)
56
bool Connectable::opened(const Connection& c)
58
_connections.push_back(c);
63
void Connectable::closed(const Connection& c)
65
_connections.remove(c);
68
} // namespace cxxtools