summaryrefslogtreecommitdiffstats
path: root/src/common/cli/cli_log.h
blob: 7585b0580f03069fd9da9c1cef21081d04af1cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/***************************************************************************
 *   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