diff options
author | geronimo <geronimo013@gmx.de> | 2012-07-30 09:12:30 +0200 |
---|---|---|
committer | geronimo <geronimo013@gmx.de> | 2012-07-30 09:12:30 +0200 |
commit | 2331befb330683d0e5459f9ca2d522f2f06c3d7e (patch) | |
tree | e95c3c4e40d57cbcf6af16d2736f34dce0279c4b /libs/IO/include/CommandReader.h | |
parent | 570a18b0d0a9a00b240504ac949214d6cc96949b (diff) | |
download | cmp-2331befb330683d0e5459f9ca2d522f2f06c3d7e.tar.gz cmp-2331befb330683d0e5459f9ca2d522f2f06c3d7e.tar.bz2 |
worked out commandreader
Diffstat (limited to 'libs/IO/include/CommandReader.h')
-rw-r--r-- | libs/IO/include/CommandReader.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/libs/IO/include/CommandReader.h b/libs/IO/include/CommandReader.h new file mode 100644 index 0000000..e54a64c --- /dev/null +++ b/libs/IO/include/CommandReader.h @@ -0,0 +1,49 @@ +/** + * ======================== legal notice ====================== + * + * File: CommandReader.h + * Created: 30. Juli 2012, 06:42 + * Author: <a href="mailto:geronimo013@gmx.de">Geronimo</a> + * Project: libIO: classes for files, filesystem and input/output + * + * CMP - compound media player + * + * is a client/server mediaplayer intended to play any media from any workstation + * without the need to export or mount shares. cmps is an easy to use backend + * with a (ready to use) HTML-interface. Additionally the backend supports + * authentication via HTTP-digest authorization. + * cmpc is a client with vdr-like osd-menues. + * + * Copyright (c) 2012 Reinhard Mantey, some rights reserved! + * published under Creative Commons by-sa + * For details see http://creativecommons.org/licenses/by-sa/3.0/ + * + * The cmp project's homepage is at http://projects.vdr-developer.org/projects/cmp + * + * -------------------------------------------------------------- + */ +#ifndef COMMANDREADER_H +#define COMMANDREADER_H + +#include <Reader.h> +#include <vector> +#include <string> + +class cCommandReader : public cReader { +public: + cCommandReader(const char *cmd); + virtual ~cCommandReader(); + + void AddCommandParameter(const char *Param); + +protected: + virtual bool Open(void); + virtual void Close(void); + +private: + pid_t pid; + std::vector<std::string> args; + }; + +#endif /* COMMANDREADER_H */ + |