unrecognizedserverstatusevent.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 unrecognizedserverstatusevent.h
00013 ** \version $Id: unrecognizedserverstatusevent.h 2780 2008-06-21 21:48:32Z edmanm $
00014 ** \brief Server status event with an unrecognized status value
00015 */
00016 
00017 #ifndef _UNRECOGNIZEDSERVERSTATUSEVENT_H
00018 #define _UNRECOGNIZEDSERVERSTATUSEVENT_H
00019 
00020 #include <QHash>
00021 #include "serverstatusevent.h"
00022 
00023 
00024 class UnrecognizedServerStatusEvent : public ServerStatusEvent
00025 {
00026 public:
00027   /** Constructor. <b>statusString</b> is the unrecognized server status value
00028    * string we and <b>args</b> is the (possibly empty) list of status event
00029    * arguments. */
00030   UnrecognizedServerStatusEvent(tc::Severity severity,
00031                                 const QString &statusString,
00032                                 const QHash<QString,QString> &args)
00033     : ServerStatusEvent(severity, ServerStatusEvent::UnrecognizedStatus),
00034       _statusString(statusString), _args(args) {}
00035 
00036   /** Returns the status string for this server status event. */
00037   QString statusString() const { return _statusString; }
00038   /** Returns a (possibly empty) list of status event arguments given for this
00039    * event. */
00040   QHash<QString,QString> arguments() const { return _args; }
00041 
00042 private:
00043   QString _statusString; /**< Name of the unrecognized status event. */
00044   QHash<QString,QString> _args; /**< Status event arguments. */
00045 };
00046 
00047 #endif
00048 

Generated on Wed Nov 26 21:02:42 2008 for Vidalia by  doxygen 1.5.7.1