NullUI.cc Source File

Back to the index.

NullUI.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2010 Anders Gavare. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are met:
6  *
7  * 1. Redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution.
12  * 3. The name of the author may not be used to endorse or promote products
13  * derived from this software without specific prior written permission.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25  * SUCH DAMAGE.
26  */
27 
28 #include "NullUI.h"
29 #include "GXemul.h"
30 
31 
33  : UI(gxemul)
34 {
35 }
36 
37 
39 {
40 }
41 
42 
44 {
45 }
46 
47 
49 {
50 }
51 
52 
54 {
55 }
56 
57 
58 void NullUI::ShowDebugMessage(const string& msg)
59 {
60 }
61 
62 
63 void NullUI::ShowDebugMessage(Component* component, const string& msg)
64 {
65 }
66 
67 
68 void NullUI::ShowCommandMessage(const string& command)
69 {
70 }
71 
72 
73 void NullUI::FatalError(const string& msg)
74 {
75 }
76 
77 
78 void NullUI::RedisplayInputLine(const string& inputline, size_t cursorPosition)
79 {
80 }
81 
82 
84 {
85 }
86 
87 
89 {
90 }
91 
92 
94 {
95  return 0;
96 }
97 
virtual void RedisplayInputLine(const string &inputline, size_t cursorPosition)
Does nothing, for the dummy UI.
Definition: NullUI.cc:78
virtual void Shutdown()
Shuts down the UI.
Definition: NullUI.cc:88
virtual void ShowCommandMessage(const string &command)
Does nothing, for the dummy UI.
Definition: NullUI.cc:68
virtual int MainLoop()
Runs the main loop. Ignored by the NullUI.
Definition: NullUI.cc:93
NullUI(GXemul *gxemul)
Constructs a NullUI.
Definition: NullUI.cc:32
The main emulator class.
Definition: GXemul.h:54
virtual void InputLineDone()
Executed by the CommandInterpreter when a line has been completed (with a newline).
Definition: NullUI.cc:83
virtual void ShowDebugMessage(const string &msg)
Does nothing, for the dummy UI.
Definition: NullUI.cc:58
A Component is a node in the configuration tree that makes up an emulation setup. ...
Definition: Component.h:62
virtual ~NullUI()
Definition: NullUI.cc:38
virtual void Initialize()
Does nothing, for the dummy UI.
Definition: NullUI.cc:43
virtual void UpdateUI()
Does nothing, for the dummy UI.
Definition: NullUI.cc:53
Base class for a User Interface.
Definition: UI.h:40
virtual void FatalError(const string &msg)
Does nothing, for the dummy UI.
Definition: NullUI.cc:73
virtual void ShowStartupBanner()
Does nothing, for the dummy UI.
Definition: NullUI.cc:48

Generated on Sun Sep 30 2018 16:05:18 for GXemul by doxygen 1.8.13