newdescriptorevent.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 
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 newdescriptorevent.h
00013 ** \version $Id: newdescriptorevent.h 2362 2008-02-29 04:30:11Z edmanm $
00014 ** \brief Event dispatched upon receiving a new descriptor from Tor
00015 */
00016 
00017 #ifndef _NEWDESCRIPTOREVENT_H
00018 #define _NEWDESCRIPTOREVENT_H
00019 
00020 #include <QStringList>
00021 #include <QEvent>
00022 
00023 
00024 class NewDescriptorEvent : public QEvent
00025 {
00026 public:
00027   /** Default constructor */
00028   NewDescriptorEvent(QStringList idList)
00029   : QEvent((QEvent::Type)CustomEventType::NewDescriptorEvent)
00030   { _idList = idList; }
00031   
00032   /** Returns a list of new server IDs. */
00033   QStringList descriptorIDs() const { return _idList; }
00034   
00035 private:
00036   /** A list of new descriptors available. */
00037   QStringList _idList;
00038 };
00039 
00040 #endif
00041 

Generated on Wed Dec 23 21:06:55 2009 for Vidalia by  doxygen 1.6.1