CARMA C++
Authenticate.h
1 #ifndef CARMA_UI_RTD_AUTHENTICATE_H
2 #define CARMA_UI_RTD_AUTHENTICATE_H
3 
4 /*
5  * @author Hemant Shukla
6  * @date June 10, 1998
7  *
8  * @author Steve Scott
9  * $id: $
10  *
11  * $CarmaCopyright$
12  *
13  */
14 
15 #include <string>
16 
17 namespace carma {
18 namespace ui {
19 namespace rtd {
20 
21 // forward declarations
22 class Version;
23 class Window;
24 class WindowList;
25 
26 enum AuthenticationStatus {
27  AUTH_SUCCESS,
28  AUTH_FAILURE,
29  AUTH_EXIT,
30 };
31 
32 class Authenticate {
33 public:
34  enum AuthenticationStatus authenticate(const Version &version, const WindowList &windowList);
35 
36  std::string getShortName() const;
37  std::string getFullName() const;
38  std::string getClientVersion() const;
39  Window *getWindow() const;
40 
41 private:
42  std::string shortname;
43  std::string fullname;
44  Window *window;
45 };
46 
47 } // namespace carma::ui::rtd
48 } // namespace carma::ui
49 } // namespace carma
50 
51 #endif // CARMA_UI_RTD_AUTHENTICATE_H
Class to read and contain versioning info for C++ server and Java client RTD programs.
Definition: Version.h:25
A list of all possible windows on a system and methods to find them.
Definition: WindowList.h:174