Debugger - Stage 3 (artf511247)
[deliverable/titan.core.git] / mctr2 / mctr / UserInterface.h
1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * Balasko, Jeno
10 * Bene, Tamas
11 * Lovassy, Arpad
12 * Szabo, Janos Zoltan – initial implementation
13 * Vilmos Varga - author
14 ******************************************************************************/
15 //
16 // Description: Header file for UserInterface
17 //
18 #ifndef MCTR_USERINTERFACE_H
19 #define MCTR_USERINTERFACE_H
20 //----------------------------------------------------------------------------
21
22 #include <sys/time.h>
23
24 //----------------------------------------------------------------------------
25
26 namespace mctr {
27
28 //----------------------------------------------------------------------------
29
30 /**
31 * The user interface singleton interface class.
32 */
33 class UserInterface
34 {
35 public:
36 /**
37 * Constructs the UserInterface.
38 */
39 UserInterface() { }
40
41 /**
42 * Destructor.
43 */
44 virtual ~UserInterface();
45
46 /**
47 * Initialize the user interface.
48 */
49 virtual void initialize();
50
51 /**
52 * Enters the main loop.
53 */
54 virtual int enterLoop(int argc, char* argv[]) = 0;
55
56 /**
57 * Status of MC has changed.
58 */
59 virtual void status_change() = 0;
60
61 /**
62 * Error message from MC.
63 */
64 virtual void error(int severity, const char* message) = 0;
65
66 /**
67 * General notification from MC.
68 */
69 virtual void notify(const struct timeval* timestamp, const char* source,
70 int severity, const char* message) = 0;
71
72 virtual void executeBatchFile(const char* filename);
73
74 };
75
76 //----------------------------------------------------------------------------
77
78 } /* namespace mctr */
79
80 //----------------------------------------------------------------------------
81 #endif // MCTR_USERINTERFACE_H
82
83 // Local Variables:
84 // mode: C++
85 // indent-tabs-mode: nil
86 // c-basic-offset: 4
87 // End:
This page took 0.037551 seconds and 5 git commands to generate.