cryptedmessageerror.h

00001 /***************************************************************************
00002                           cryptedmessageerror.h  -  description
00003                              -------------------
00004     begin                : mer mai 17 2006
00005     copyright            : (C) 2006 by Sylvain Archenault <sylvain.archenault@laposte.net> Yves Houpert <yves.houpert@insa-rouen.fr>
00006  
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef CRYPTEDMESSAGEERROR_H
00018 #define CRYPTEDMESSAGEERROR_H
00019 
00020 #include <error.h>
00021 
00028 class CryptedMessageError : public Error
00029 {
00030 public: //public method.
00035   CryptedMessageError(const int errorSender=-1, const int errorReceiver =-1);
00036 
00042   CryptedMessageError(const int errorSender, const int errorReceiver, const std::string& description);
00043 
00045   ~CryptedMessageError();
00046 
00049   int getErrorSender() const { return m_iErrorSender; }
00050 
00053   void setErrorSender(const int errorSender) { m_iErrorSender = errorSender; }
00054 
00057   int getErrorReceiver() const { return m_iErrorReceiver; }
00058 
00062   void setErrorReceiver(const int errorReceiver) { m_iErrorReceiver = errorReceiver; }
00063 
00067   void toXMLExt(XMLWriter& writer) const;
00068 
00070   void processMessage() const;
00071 
00076   virtual std::string toString() const;
00077 
00080   virtual CryptedMessageError& copy() const;
00081 
00082 private: //private members
00084   int m_iErrorSender;
00086   int m_iErrorReceiver;
00087 };
00088 
00089 #endif

Generated on Fri May 19 12:15:54 2006 for Bamboo Ch@t by  doxygen 1.4.6