00001 00005 #ifndef PREVIEWWINDOW_H 00006 #define PREVIEWWINDOW_H 00007 00008 #include <QWidget> 00009 #include <QtGui> 00010 00011 #include <string> 00012 00013 class PreviewWindow : public QWidget 00014 { 00015 Q_OBJECT 00016 00017 public: 00018 PreviewWindow(QWidget *parent = 0); 00019 ~PreviewWindow(); 00020 void setWindowFlags(Qt::WindowFlags flags); 00021 void lsofPopulate(std::string lsof_pid); 00022 00023 private: 00024 QTextEdit *textEdit; 00025 QPushButton *closeButton; 00026 QVBoxLayout *layout; 00027 00028 public slots: 00029 void updatePreview(); 00030 }; 00031 00032 #endif