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 3735 2009-04-28 20:28:01Z 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 "Stream.h"
00021 
00022 #include <QTreeWidgetItem>
00023 
00024 
00025 class StreamItem : public QTreeWidgetItem
00026 {
00027 public:
00028   /** Constructor */
00029   StreamItem(const Stream &stream);
00030 
00031   Stream stream() const { return _stream; }
00032   /** Updates the status of this stream item. */
00033   void update(const Stream &stream);
00034   /** Returns the ID of the stream associated with this tree item. */
00035   StreamId id() const { return _stream.id(); }
00036   
00037 private:
00038   Stream _stream;
00039 };
00040 
00041 #endif
00042 

Generated on 31 Mar 2010 for Vidalia by  doxygen 1.6.1