/****************************************************************************
** ErrorMessages - class
**
**   Created : Wed Sep 21 22:48:00 2006
**        by : Varol Okan using xemacs
** Copyright : (c) Varol Okan
**   License : GPL v 2.0
**
** This class holds error strings and messages for the user on how to 
** rectify these errors.
** 
****************************************************************************/

#ifndef ERRORMESSAGES_H
#define ERRORMESSAGES_H

#include <qobject.h>
#include <qvaluelist.h>

class ErrorMessages : public QObject
{
  Q_OBJECT

  class Message
  {
  public:
    QString qsError;
    QString qsExampleError;
    QString qsHelp;
  };

public: 
   ErrorMessages ( );
  ~ErrorMessages ( );

  QString errorString ( int );
  QString helpMessage ( int );
  int count ( );

protected:
  void initMe ( );
  void add ( QString &, QString &, QString & );

private:
  QValueList<Message *> m_listOfMessages;
};

#endif // ERRORMESSAGES_H
