00001 /**************************************************************** 00002 * Vidalia is distributed under the following license: 00003 * 00004 * Copyright (C) 2006, Matt Edman, Justin Hipple 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 * Boston, MA 02110-1301, USA. 00020 ****************************************************************/ 00021 00022 /** 00023 * \file eventtype.h 00024 * \version $Id: eventtype.h 1250 2006-10-01 06:45:22Z edmanm $ 00025 * \brief Custom events dispatched upon receiving notification from Tor 00026 */ 00027 00028 #ifndef _EVENTTYPE_H 00029 #define _EVENTTYPE_H 00030 00031 #include <QEvent> 00032 00033 00034 /** Custom event type identifiers. */ 00035 namespace CustomEventType { 00036 /** Bandwidth update event. */ 00037 const int BandwidthEvent = QEvent::User; 00038 /** Circuit status event. */ 00039 const int CircuitEvent = QEvent::User+1; 00040 /** Stream status event. */ 00041 const int StreamEvent = QEvent::User+2; 00042 /** Log message event. */ 00043 const int LogEvent = QEvent::User+3; 00044 /** OR connection status event. */ 00045 const int OrConnEvent = QEvent::User+4; 00046 /** New descriptor event. */ 00047 const int NewDescriptorEvent = QEvent::User+5; 00048 /** Control command send event. */ 00049 const int SendCommandEvent = QEvent::User+6; 00050 } 00051 00052 #endif 00053