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 unrecognizedgeneralstatusevent.h 00013 ** \version $Id: unrecognizedgeneralstatusevent.h 2780 2008-06-21 21:48:32Z edmanm $ 00014 ** \brief General status event with an unrecognized status value 00015 */ 00016 00017 #ifndef _UNRECOGNIZEDGENERALSTATUSEVENT_H 00018 #define _UNRECOGNIZEDGENERALSTATUSEVENT_H 00019 00020 #include <QHash> 00021 #include "generalstatusevent.h" 00022 00023 00024 class UnrecognizedGeneralStatusEvent : public GeneralStatusEvent 00025 { 00026 public: 00027 /** Constructor. <b>statusString</b> is the unrecognized general status 00028 * string and <b>args</b> is the (possibly empty) list of status event 00029 * arguments. */ 00030 UnrecognizedGeneralStatusEvent(tc::Severity severity, 00031 const QString &statusString, 00032 const QHash<QString,QString> &args) 00033 : GeneralStatusEvent(severity, GeneralStatusEvent::UnrecognizedStatus), 00034 _statusString(statusString), _args(args) {} 00035 00036 /** Returns the status string for this general 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