/***************************************************************************
 *   Copyright (C) 2005 Nicolas Hadacek <hadacek@kde.org>                  *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 ***************************************************************************/
#ifndef CLI_LOG_H
#define CLI_LOG_H

#include "common/global/log.h"

namespace CLI
{

class View : public Log::View
{
public:
  virtual void appendToLastLine(const TQString &text);
  virtual void clear() {}
  virtual void sorry(const TQString &message, const TQString &details);
  virtual bool askContinue(const TQString &message);
  virtual void logUserAbort();

private:
  virtual void doLog(Log::LineType type, const TQString &text, Log::Action action);
  virtual void doLog(Log::DebugLevel level, const TQString &text, Log::Action action);
};

} // namespace

#endif
