mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
Most tasks of this class were dispersed in the constructor and destructor.
Tasks are better placed in Members.
Origin commit data
------------------
Branch: ni/coolstream
Commit: dbfa0859cf
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-05 (Sun, 05 Oct 2014)
------------------
This commit was generated by Migit
58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
/*
|
|
Based up Neutrino-GUI - Tuxbox-Project
|
|
Copyright (C) 2001 by Steffen Hehn 'McClean'
|
|
|
|
Shell window class, visualize of system events on gui screen.
|
|
|
|
Implementation:
|
|
Copyright (C) 2013 martii
|
|
gitorious.org/neutrino-mp/martiis-neutrino-mp
|
|
|
|
License: GPL
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __WIDGET_SHELLWINDOW_H__
|
|
#define __WIDGET_SHELLWINDOW_H__
|
|
#ifdef HAVE_CONFIG_H
|
|
#include <config.h>
|
|
#endif
|
|
|
|
#include <string>
|
|
#include <gui/widget/textbox.h>
|
|
|
|
class CShellWindow
|
|
{
|
|
public:
|
|
enum shellwindow_modes
|
|
{
|
|
VERBOSE = 1,
|
|
ACKNOWLEDGE = 2,
|
|
ACKNOWLEDGE_MSG = 4
|
|
};
|
|
CShellWindow(const std::string &Command, const int Mode = 0, int* Res = NULL);
|
|
~CShellWindow();
|
|
private:
|
|
int mode;
|
|
std::string command;
|
|
int* res;
|
|
CFrameBuffer *frameBuffer;
|
|
CTextBox *textBox;
|
|
void exec();
|
|
void showResult();
|
|
};
|
|
|
|
#endif
|