3 * Bacula wx-console application
5 * Nicolas Boichat, April 2004
10 Copyright (C) 2004 Kern Sibbald and John Walker
12 This program is free software; you can redistribute it and/or
13 modify it under the terms of the GNU General Public License
14 as published by the Free Software Foundation; either version 2
15 of the License, or (at your option) any later version.
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 // ============================================================================
29 // ============================================================================
31 // ----------------------------------------------------------------------------
33 // ----------------------------------------------------------------------------
35 #include <wx/wxprec.h>
37 #include "wxbmainframe.h"
42 int generate_daemon_event(JCR *jcr, const char *event) { return 1; }
43 int generate_job_event(JCR *jcr, const char *event) { return 1; }
46 // ----------------------------------------------------------------------------
48 // ----------------------------------------------------------------------------
50 class MyApp : public wxApp
53 virtual bool OnInit();
56 // ============================================================================
58 // ============================================================================
62 // ----------------------------------------------------------------------------
63 // the application class
64 // ----------------------------------------------------------------------------
66 // 'Main program' equivalent: the program execution "starts" here
69 wxbMainFrame *frame = wxbMainFrame::CreateInstance(_T("Bacula wx-console"),
70 wxPoint(50, 50), wxSize(780, 500));
74 frame->Print(wxString("Welcome to bacula wx-console ") << VERSION << " (" << BDATE << ")!\n", CS_DEBUG);
76 frame->StartConsoleThread("");