Continued ripping up the source.
[aesalon.git] / gui / src / Session.h
blob207879b7e4159bb2d0e2f71d5ba92df0b0a93bb5
1 #ifndef AESALON_GUI_SESSION_H
2 #define AESALON_GUI_SESSION_H
4 #include <QString>
6 namespace Aesalon {
7 namespace GUI {
9 class Session {
10 public:
11 enum session_type_e {
12 LAUNCH_SESSION,
13 CONNECT_SESSION
15 private:
16 QString session_name;
17 QString executable_path;
18 QString arguments;
19 int port;
20 session_type_e session_type;
21 public:
22 Session() : session_name(""), executable_path(""), arguments(""), port(0), session_type(LAUNCH_SESSION) {}
23 virtual ~Session() {}
25 QString get_session_name() const { return session_name; }
26 void set_session_name(const QString &new_name) { session_name = new_name; }
28 QString get_executable_path() const { return executable_path; }
29 void set_executable_path(const QString &new_path) { executable_path = new_path; }
31 QString get_arguments() const { return arguments; }
32 void set_arguments(const QString &new_arguments) { arguments = new_arguments; }
34 session_type_e get_session_type() const { return session_type; }
35 void set_session_type(session_type_e new_session_type) { session_type = new_session_type; }
37 int get_port() const { return port; }
38 void set_port(int new_port) { port = new_port; }
41 } // namespace GUI
42 } // namespace Aesalon
44 #endif