Vidalia 0.2.10

BridgeUsageDialog.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 BridgeUsageDialog.h
00013 ** \version $Id: BridgeUsageDialog.h 3735 2009-04-28 20:28:01Z edmanm $
00014 ** \brief Displays a summary of bridge usage information, including client
00015 ** geographic location history.
00016 */
00017 
00018 #ifndef _BRIDGEUSAGEDIALOG_H
00019 #define _BRIDGEUSAGEDIALOG_H
00020 
00021 #include "ui_BridgeUsageDialog.h"
00022 
00023 #include <QDialog>
00024 #include <QDateTime>
00025 #include <QHash>
00026 
00027 
00028 class BridgeUsageDialog : public QDialog
00029 {
00030   Q_OBJECT
00031 
00032 public:
00033   /** Default constructor.
00034    */
00035   BridgeUsageDialog(QWidget *parent = 0);
00036 
00037   /** Updates the dialog with current bridge usage information.
00038    */
00039   void update(const QDateTime &timeStarted,
00040               const QHash<QString,int> &countrySummary);
00041 
00042 protected:
00043   /** Called when the dialog is displayed. Adjusts the size of the column
00044    * headers.
00045    */
00046   void showEvent(QShowEvent *e);
00047 
00048 private:
00049   Ui::BridgeUsageDialog ui;
00050 };
00051 
00052 #endif
00053