Debian Codegraph @

code/apis/CmdLineManager.h

raw
1 /*
2 Copyright (C) 2009-2011 wxLauncher Team
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19 #ifndef CMDLINEMANAGER_H
20 #define CMDLINEMANAGER_H
21
22 #include <wx/wx.h>
23
24 #include "apis/EventHandlers.h"
25
26 /** Command line has changed. */
27 LAUNCHER_DECLARE_EVENT_TYPE(EVT_CMD_LINE_CHANGED);
28 /** Custom flags have changed. */
29 LAUNCHER_DECLARE_EVENT_TYPE(EVT_CUSTOM_FLAGS_CHANGED);
30
31 class CmdLineManager {
32 private:
33 CmdLineManager();
34 ~CmdLineManager();
35
36 public:
37 static void RegisterCmdLineChanged(wxEvtHandler *handler);
38 static void UnRegisterCmdLineChanged(wxEvtHandler *handler);
39 static void RegisterCustomFlagsChanged(wxEvtHandler *handler);
40 static void UnRegisterCustomFlagsChanged(wxEvtHandler *handler);
41 static void GenerateCmdLineChanged();
42 static void GenerateCustomFlagsChanged();
43 private:
44 static EventHandlers CmdLineChangedHandlers;
45 static EventHandlers CustomFlagsChangedHandlers;
46 };
47 #endif