Commit | Line | Data |
---|---|---|
970ed795 | 1 | /////////////////////////////////////////////////////////////////////////////// |
3abe9331 | 2 | // Copyright (c) 2000-2015 Ericsson Telecom AB |
970ed795 EL |
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 | // | |
9 | // Description: Header file for UserInterface | |
10 | // Author: Vilmos Varga | |
11 | // mail: ethvva@eth.ericsson.se | |
12 | // | |
3abe9331 | 13 | // Copyright (c) 2000-2015 Ericsson Telecom AB |
970ed795 EL |
14 | // |
15 | #ifndef MCTR_USERINTERFACE_H | |
16 | #define MCTR_USERINTERFACE_H | |
17 | //---------------------------------------------------------------------------- | |
18 | ||
19 | #include <sys/time.h> | |
20 | ||
21 | //---------------------------------------------------------------------------- | |
22 | ||
23 | namespace mctr { | |
24 | ||
25 | //---------------------------------------------------------------------------- | |
26 | ||
27 | /** | |
28 | * The user interface singleton interface class. | |
29 | */ | |
30 | class UserInterface | |
31 | { | |
32 | public: | |
33 | /** | |
34 | * Constructs the UserInterface. | |
35 | */ | |
36 | UserInterface() { } | |
37 | ||
38 | /** | |
39 | * Destructor. | |
40 | */ | |
41 | virtual ~UserInterface(); | |
42 | ||
43 | /** | |
44 | * Initialize the user interface. | |
45 | */ | |
46 | virtual void initialize(); | |
47 | ||
48 | /** | |
49 | * Enters the main loop. | |
50 | */ | |
51 | virtual int enterLoop(int argc, char* argv[]) = 0; | |
52 | ||
53 | /** | |
54 | * Status of MC has changed. | |
55 | */ | |
56 | virtual void status_change() = 0; | |
57 | ||
58 | /** | |
59 | * Error message from MC. | |
60 | */ | |
61 | virtual void error(int severity, const char* message) = 0; | |
62 | ||
63 | /** | |
64 | * General notification from MC. | |
65 | */ | |
66 | virtual void notify(const struct timeval* timestamp, const char* source, | |
67 | int severity, const char* message) = 0; | |
68 | ||
69 | }; | |
70 | ||
71 | //---------------------------------------------------------------------------- | |
72 | ||
73 | } /* namespace mctr */ | |
74 | ||
75 | //---------------------------------------------------------------------------- | |
76 | #endif // MCTR_USERINTERFACE_H | |
77 | ||
78 | // Local Variables: | |
79 | // mode: C++ | |
80 | // indent-tabs-mode: nil | |
81 | // c-basic-offset: 4 | |
82 | // End: |