Vidalia
0.3.1
src
vidalia
network
StreamItem.h
Go to the documentation of this file.
1
/*
2
** This file is part of Vidalia, and is subject to the license terms in the
3
** LICENSE file, found in the top level directory of this distribution. If you
4
** did not receive the LICENSE file with this file, you may obtain it from the
5
** Vidalia source package distributed by the Vidalia Project at
6
** http://www.torproject.org/projects/vidalia.html. No part of Vidalia,
7
** including this file, may be copied, modified, propagated, or distributed
8
** except according to the terms described in the LICENSE file.
9
*/
10
11
/*
12
** \file StreamItem.h
13
** \brief Item representing a stream through Tor and its status
14
*/
15
16
#ifndef _STREAMITEM_H
17
#define _STREAMITEM_H
18
19
#include "
Stream.h
"
20
21
#include <QTreeWidgetItem>
22
23
24
class
StreamItem
:
public
QTreeWidgetItem
25
{
26
public
:
27
/** Constructor */
28
StreamItem
(
const
Stream
&
stream
);
29
30
Stream
stream
()
const
{
return
_stream
; }
31
/** Updates the status of this stream item. */
32
void
update
(
const
Stream
&stream);
33
/** Returns the ID of the stream associated with this tree item. */
34
StreamId
id
()
const
{
return
_stream
.
id
(); }
35
36
private
:
37
Stream
_stream
;
38
};
39
40
#endif
41
Stream
Definition:
Stream.h:31
StreamItem
Definition:
StreamItem.h:24
StreamItem::_stream
Stream _stream
Definition:
StreamItem.h:37
StreamItem::stream
Stream stream() const
Definition:
StreamItem.h:30
Stream::id
StreamId id() const
Definition:
Stream.h:68
StreamId
QString StreamId
Definition:
Stream.h:28
StreamItem::StreamItem
StreamItem(const Stream &stream)
Definition:
StreamItem.cpp:21
StreamItem::id
StreamId id() const
Definition:
StreamItem.h:34
StreamItem::update
void update(const Stream &stream)
Definition:
StreamItem.cpp:33
Stream.h
Generated by
1.8.12