File indexing completed on 2024-04-28 05:32:12

0001 #ifndef oxygenloghandler_h
0002 #define oxygenloghandler_h
0003 /*
0004 * this file is part of the oxygen gtk engine
0005 * SPDX-FileCopyrightText: 2010 Hugo Pereira Da Costa <hugo.pereira@free.fr>
0006 * SPDX-FileCopyrightText: 2010 Ruslan Kabatsayev <b7.10110111@gmail.com>
0007 *
0008 * SPDX-License-Identifier: LGPL-2.0-or-later
0009 */
0010 
0011 #include <gtk/gtk.h>
0012 
0013 namespace Oxygen
0014 {
0015     class LogHandler
0016     {
0017 
0018         public:
0019 
0020         //! constructor
0021         LogHandler( void );
0022 
0023         //! destructor
0024         virtual ~LogHandler( void );
0025 
0026         protected:
0027 
0028         //!@name error handlers
0029         //@{
0030         static void gtkLogHandler( const gchar*, GLogLevelFlags, const gchar*, gpointer );
0031         static void glibLogHandler( const gchar*, GLogLevelFlags, const gchar*, gpointer );
0032         //@}
0033 
0034         private:
0035 
0036         //! gtk log id
0037         guint _gtkLogId;
0038 
0039 
0040         //! glib log id
0041         guint _glibLogId;
0042 
0043     };
0044 
0045 }
0046 
0047 #endif