• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmobiletools

errorhandler.h

Go to the documentation of this file.
00001 /***************************************************************************
00002    Copyright (C) 2007 by Matthias Lechner <matthias@lmme.de>
00003 
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 2 of the License, or
00007    (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this program; if not, write to the
00016    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018  ***************************************************************************/
00019 
00020 #ifndef KMOBILETOOLSERRORHANDLER_H
00021 #define KMOBILETOOLSERRORHANDLER_H
00022 
00023 #include <QtCore/QStack>
00024 #include <QtCore/QString>
00025 #include <QtCore/QObject>
00026 
00027 #include <libkmobiletools/errortypes/baseerror.h>
00028 #include "kmobiletools_export.h"
00029 
00030 namespace KMobileTools {
00031 
00042 class ErrorHandlerPrivate;
00043 class KMOBILETOOLS_EXPORT ErrorHandler : public QObject {
00044     Q_OBJECT
00045 
00046 friend class ErrorHandlerInstance;
00047 public:
00053     static ErrorHandler* instance();
00054 
00060     void addError( const BaseError* error );
00061 
00067     int errorCount() const;
00068 
00074     QStack<const BaseError*> errorStack();
00075 
00076     ~ErrorHandler();
00077 
00078 Q_SIGNALS:
00079     void errorOccurred( const QString& message, BaseError::Priority );
00080 
00081 private:
00082     ErrorHandler();
00083     ErrorHandlerPrivate* const d;
00084 
00090     void writeToLog( const BaseError* error );
00091     void displayError( const BaseError* error );
00092 };
00093 
00094 }
00095 
00096 #endif

kmobiletools

Skip menu "kmobiletools"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal