Vidalia
0.3.1
src
vidalia
config
BridgeUsageDialog.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 BridgeUsageDialog.h
13
** \brief Displays a summary of bridge usage information, including client
14
** geographic location history.
15
*/
16
17
#ifndef _BRIDGEUSAGEDIALOG_H
18
#define _BRIDGEUSAGEDIALOG_H
19
20
#include "ui_BridgeUsageDialog.h"
21
22
#include <QDialog>
23
#include <QDateTime>
24
#include <QHash>
25
26
27
class
BridgeUsageDialog
:
public
QDialog
28
{
29
Q_OBJECT
30
31
public
:
32
/** Default constructor.
33
*/
34
BridgeUsageDialog
(QWidget *parent = 0);
35
36
/** Updates the dialog with current bridge usage information.
37
*/
38
void
update
(
const
QDateTime &timeStarted,
39
const
QHash<QString,int> &countrySummary);
40
41
protected
:
42
/** Called when the dialog is displayed. Adjusts the size of the column
43
* headers.
44
*/
45
void
showEvent
(QShowEvent *e);
46
47
private
:
48
Ui::BridgeUsageDialog
ui
;
49
};
50
51
#endif
52
BridgeUsageDialog::ui
Ui::BridgeUsageDialog ui
Definition:
BridgeUsageDialog.h:48
BridgeUsageDialog::BridgeUsageDialog
BridgeUsageDialog(QWidget *parent=0)
Definition:
BridgeUsageDialog.cpp:25
BridgeUsageDialog::update
void update(const QDateTime &timeStarted, const QHash< QString, int > &countrySummary)
Definition:
BridgeUsageDialog.cpp:46
BridgeUsageDialog::showEvent
void showEvent(QShowEvent *e)
Definition:
BridgeUsageDialog.cpp:35
BridgeUsageDialog
Definition:
BridgeUsageDialog.h:27
Generated by
1.8.17