• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kcachegrind

  • sources
  • kde-4.12
  • kdesdk
  • kcachegrind
  • libcore
logger.h
Go to the documentation of this file.
1 /* This file is part of KCachegrind.
2  Copyright (C) 2002-2008 Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
3 
4  KCachegrind is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public
6  License as published by the Free Software Foundation, version 2.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; see the file COPYING. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 /*
20  * Dispatcher for messages (status/warning/errors) from libcore
21  *
22  * For different front ends which want to present the messages to the
23  * user, a derived class should be implemented
24  */
25 
26 #ifndef LOGGER_H
27 #define LOGGER_H
28 
29 #include <qstring.h>
30 #include <qtimer.h>
31 
32 class Logger
33 {
34 public:
35  virtual ~Logger();
36 
37  // Notifications for file loading
38  virtual void loadStart(const QString& filename);
39  virtual void loadProgress(int progress); // 0 - 100
40  virtual void loadWarning(int line, const QString& msg);
41  virtual void loadError(int line, const QString& msg);
42  virtual void loadFinished(const QString& msg); // msg could be error
43 
44 protected:
45  QString _filename;
46 
47 private:
48  QTimer _timer;
49 };
50 
51 #endif // LOGGER_H
52 
53 
Logger
Definition: logger.h:32
Logger::loadProgress
virtual void loadProgress(int progress)
Definition: logger.cpp:41
Logger::loadError
virtual void loadError(int line, const QString &msg)
Definition: logger.cpp:56
Logger::~Logger
virtual ~Logger()
Logger.
Definition: logger.cpp:30
Logger::loadStart
virtual void loadStart(const QString &filename)
Definition: logger.cpp:33
Logger::loadFinished
virtual void loadFinished(const QString &msg)
Definition: logger.cpp:62
Logger::loadWarning
virtual void loadWarning(int line, const QString &msg)
Definition: logger.cpp:50
Logger::_filename
QString _filename
Definition: logger.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kcachegrind

Skip menu "kcachegrind"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal