summaryrefslogtreecommitdiffstats
path: root/src/common/cli/cli_log.h
blob: 2fa83dcea652c5d91ff9294e3c69558a477c85cb (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 QString &text);
  virtual void clear() {}
  virtual void sorry(const QString &message, const QString &details);
  virtual bool askContinue(const QString &message);
  virtual void logUserAbort();

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

} // namespace

#endif