Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Palacios GUI Added
[palacios.git] / linux_usr / gui / palacios / vm_console_widget.h
1 /*
2  * vm_console_widget.h
3  *
4  *  Created on: Oct 5, 2012
5  *      Author: abhinav
6  */
7
8 #ifndef VM_CONSOLE_WIDGET_H_
9 #define VM_CONSOLE_WIDGET_H_
10
11 #include "vnc_module/vncview.h"
12
13 #include <QProcess>
14 #include <QWidget>
15 #include <QCloseEvent>
16
17 class VmConsoleWidget: public QWidget {
18 Q_OBJECT
19
20 public:
21         // Different operation modes of VM
22         enum {
23                 STREAM, CONSOLE, VNC
24         };
25         
26         VmConsoleWidget(QWidget* parent = 0);
27         virtual ~VmConsoleWidget();
28         bool isRunning();
29
30 public slots:
31         bool start(int mode, QString devfile, QString streamName);
32         bool tryTerminate();
33         void mainWindowClosing();
34
35 protected slots:
36         void termProcessExited(int, QProcess::ExitStatus);
37         void errorMessage(QProcess::ProcessError);
38
39 signals:
40         void exited();
41
42 protected:
43         void closeEvent(QCloseEvent *);
44         void resizeEvent(QResizeEvent *);
45
46 private:
47         int mCols;
48         int mRows;
49         QString mVmMode;
50         // Process for xterm
51         QProcess* mTermProcess;
52         // VNC
53         QProcess* mVncServer;
54         VncView* mVncView;
55
56 };
57
58
59 #endif /* VM_CONSOLE_WIDGET_H_ */