streamitem.h

Go to the documentation of this file.
00001 /*
00002 **  This file is part of Vidalia, and is subject to the license terms in the
00003 **  LICENSE file, found in the top level directory of this distribution. If you
00004 **  did not receive the LICENSE file with this file, you may obtain it from the
00005 **  Vidalia source package distributed by the Vidalia Project at
00006 **  http://www.vidalia-project.net/. No part of Vidalia, including this file,
00007 **  may be copied, modified, propagated, or distributed except according to the
00008 **  terms described in the LICENSE file.
00009 */
00010 
00011 /*
00012 ** \file streamitem.h
00013 ** \version $Id: streamitem.h 2977 2008-08-17 01:28:25Z edmanm $
00014 ** \brief Item representing a stream through Tor and its status
00015 */
00016 
00017 #ifndef _STREAMITEM_H
00018 #define _STREAMITEM_H
00019 
00020 #include <QTreeWidgetItem>
00021 #include <stream.h>
00022 
00023 
00024 class StreamItem : public QTreeWidgetItem
00025 {
00026 public:
00027   /** Constructor */
00028   StreamItem(const Stream &stream);
00029 
00030   /** Updates the status of this stream item. */
00031   void update(const Stream &stream);
00032   /** Returns the ID of the stream associated with this tree item. */
00033   StreamId id() const { return _id; }
00034   
00035 private:
00036   StreamId _id; /**< ID for this stream. */
00037 };
00038 
00039 #endif
00040 

Generated on Tue Jul 7 17:00:56 2009 for Vidalia by  doxygen 1.4.7