summaryrefslogtreecommitdiff
path: root/httpresource_base.h
diff options
context:
space:
mode:
authorthlo <smarttv640@gmail.com>2013-04-04 21:05:33 +0200
committerthlo <t.lohmar@gmx.de>2013-04-04 21:05:33 +0200
commit4c2f508b616652c05288aef8c11cfe10c9502d24 (patch)
treed79396cb2cfb4bde345a4c8339d38098ff5b3eb0 /httpresource_base.h
parentafb4d3bebf5e4ecbaba0cee23a66bd745e07ef4c (diff)
downloadvdr-plugin-smarttvweb-4c2f508b616652c05288aef8c11cfe10c9502d24.tar.gz
vdr-plugin-smarttvweb-4c2f508b616652c05288aef8c11cfe10c9502d24.tar.bz2
New urls manager for YouTube URLs. New http client class. Various bug fixes.
Diffstat (limited to 'httpresource_base.h')
-rw-r--r--httpresource_base.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/httpresource_base.h b/httpresource_base.h
new file mode 100644
index 0000000..81a62c6
--- /dev/null
+++ b/httpresource_base.h
@@ -0,0 +1,46 @@
+/*
+ * httpresource_base.h: VDR on Smart TV plugin
+ *
+ * Copyright (C) 2012, 2013 T. Lohmar
+ *
+ * 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, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+ *
+ */
+
+#ifndef __HTTPREQUEST_base_H__
+#define __HTTPREQUEST_base_H__
+
+class SmartTvServer;
+
+class cHttpResourceBase {
+
+ public:
+ cHttpResourceBase(int f, int id, int port, SmartTvServer* fac): mFd(f), mReqId(id), mFactory(fac), mServerPort(port) {};
+ virtual ~cHttpResourceBase() {};
+
+ virtual int handleRead() =0;
+ virtual int handleWrite() = 0;
+ virtual int checkStatus() =0;
+
+ protected:
+ int mFd;
+ int mReqId;
+ SmartTvServer* mFactory;
+ int mServerPort;
+
+};
+
+#endif