Commit | Line | Data |
---|---|---|
d44e3c4f | 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 | ******************************************************************************/ | |
970ed795 EL |
15 | // |
16 | // Description: Header file for UserInterface | |
970ed795 EL |
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 | }; | |
73 | ||
74 | //---------------------------------------------------------------------------- | |
75 | ||
76 | } /* namespace mctr */ | |
77 | ||
78 | //---------------------------------------------------------------------------- | |
79 | #endif // MCTR_USERINTERFACE_H | |
80 | ||
81 | // Local Variables: | |
82 | // mode: C++ | |
83 | // indent-tabs-mode: nil | |
84 | // c-basic-offset: 4 | |
85 | // End: |