Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / cpp / log.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        cpp/log.h
3 // Purpose:     c++ wrapper for wxLog and wxLogPassThrough
4 // Author:      Mattia Barbon
5 // Modified by:
6 // Created:     22/09/2002
7 // RCS-ID:      $Id: log.h 2057 2007-06-18 23:03:00Z mbarbon $
8 // Copyright:   (c) 2002-2004 Mattia Barbon
9 // Licence:     This program is free software; you can redistribute it and/or
10 //              modify it under the same terms as Perl itself
11 /////////////////////////////////////////////////////////////////////////////
12
13 #include <wx/log.h>
14
15 class wxPlLog : public wxLog
16 {
17 //    WXPLI_DECLARE_DYNAMIC_CLASS( wxPlLog );
18     WXPLI_DECLARE_V_CBACK();
19 public:
20     WXPLI_DEFAULT_CONSTRUCTOR_NC( wxPlLog, "Wx::PlLog", true );
21
22     DEC_V_CBACK_VOID__CWXCHARP_TIMET( DoLogString );
23     DEC_V_CBACK_VOID__WXLOGLEVEL_CWXCHARP_TIMET( DoLog );
24 };
25
26 DEF_V_CBACK_VOID__CWXCHARP_TIMET( wxPlLog, wxLog, DoLogString );
27 DEF_V_CBACK_VOID__WXLOGLEVEL_CWXCHARP_TIMET( wxPlLog, wxLog, DoLog );
28
29 class wxPlLogPassThrough : public wxLogPassThrough
30 {
31 //    WXPLI_DECLARE_DYNAMIC_CLASS( wxPlLogPassThrough );
32     WXPLI_DECLARE_V_CBACK();
33 public:
34     WXPLI_DEFAULT_CONSTRUCTOR_NC( wxPlLogPassThrough,
35                                   "Wx::PlLogPassThrough", true );
36
37     DEC_V_CBACK_VOID__CWXCHARP_TIMET( DoLogString );
38     DEC_V_CBACK_VOID__WXLOGLEVEL_CWXCHARP_TIMET( DoLog );
39 };
40
41 DEF_V_CBACK_VOID__CWXCHARP_TIMET( wxPlLogPassThrough, wxLogPassThrough,
42                                   DoLogString );
43 DEF_V_CBACK_VOID__WXLOGLEVEL_CWXCHARP_TIMET( wxPlLogPassThrough,
44                                              wxLogPassThrough, DoLog );
45
46 // local variables:
47 // mode: c++
48 // end: