Reference Manual

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

# connection.h

Go to the documentation of this file.

    00001 /*  Inti: Integrated Foundation Classes
    00002  *  Copyright (C) 2002-2003 The Inti Development Team.
    00003  *  Copyright (C) 2000 Red Hat, Inc.
    00004  *
    00005  *  This program is free software; you can redistribute it and/or modify
    00006  *  it under the terms of the GNU General Public License as published by
    00007  *  the Free Software Foundation; either version 2 of the License, or
    00008  *  (at your option) any later version.
    00009  *
    00010  *  This program is distributed in the hope that it will be useful,
    00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00013  *  GNU Library General Public License for more details.
    00014  *
    00015  *  You should have received a copy of the GNU Library General Public License
    00016  *  along with this program; if not, write to the Free Software
    00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    00018  */
    00019
    00022
    00023 #ifndef INTI_CONNECTION_H
    00024 #define INTI_CONNECTION_H
    00025
    00026 #ifndef INTI_OBJECT_H
    00027 #include <inti/object.h>
    00028 #endif
    00029
    00030 namespace Inti {
    00031
    00032 class Slot;
    00033
    00039
    00040 class Node : public ReferencedObject
    00041 {
    00042         Slot *slot_;
    00043
    00044 protected:
    00045         Node(Slot *slot);
    00047
    00048         virtual ~Node();
    00050
    00051 public:
    00052
    00053         Slot* slot() { return slot_; }
    00055
    00056         virtual void block() = 0;
    00058
    00059         virtual void unblock() = 0;
    00061
    00062         virtual void disconnect() = 0;
    00064 };
    00065
    00075
    00076 class Connection
    00077 {
    00078         Node *node_;
    00079
    00080 public:
    00083
    00084         Connection();
    00086
    00087         Connection(Node *node);
    00090
    00091         Connection(const Connection& src);
    00093
    00094         ~Connection();
    00096
    00097         Connection& operator=(const Connection& src);
    00099
    00103
    00104         bool is_connected() const;
    00110
    00114
    00115         void block();
    00118
    00119         void unblock();
    00125
    00126         void disconnect();
    00130
    00132 };
    00133
    00134 } // namespace Inti
    00135
    00136 #endif // INTI_CONNECTION_H
    00137

Main Page - Footer