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 00004 ** you did not receive the LICENSE file with this file, you may obtain it 00005 ** from the 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 00008 ** the terms described in the LICENSE file. 00009 */ 00010 00011 /* 00012 ** \file eventtype.h 00013 ** \version $Id: eventtype.h 2362 2008-02-29 04:30:11Z edmanm $ 00014 ** \brief Custom events dispatched upon receiving notification from Tor 00015 */ 00016 00017 #ifndef _EVENTTYPE_H 00018 #define _EVENTTYPE_H 00019 00020 #include <QEvent> 00021 00022 00023 /** Custom event type identifiers. */ 00024 namespace CustomEventType { 00025 /** Bandwidth update event. */ 00026 const int BandwidthEvent = QEvent::User; 00027 /** Circuit status event. */ 00028 const int CircuitEvent = QEvent::User+1; 00029 /** Stream status event. */ 00030 const int StreamEvent = QEvent::User+2; 00031 /** Log message event. */ 00032 const int LogEvent = QEvent::User+3; 00033 /** OR connection status event. */ 00034 const int OrConnEvent = QEvent::User+4; 00035 /** New descriptor event. */ 00036 const int NewDescriptorEvent = QEvent::User+5; 00037 /** Control command send event. */ 00038 const int SendCommandEvent = QEvent::User+6; 00039 /** New address mapping event. */ 00040 const int AddressMapEvent = QEvent::User+7; 00041 /** Tor client status events. */ 00042 const int ClientStatusEvent = QEvent::User+8; 00043 /** Tor server status events. */ 00044 const int ServerStatusEvent = QEvent::User+9; 00045 /** General Tor status events. */ 00046 const int GeneralStatusEvent = QEvent::User+10; 00047 } 00048 00049 #endif 00050