From 85cb3f04252b0228830903b21c08bb64e9919c18 Mon Sep 17 00:00:00 2001 From: geronimo Date: Sun, 29 Jul 2012 15:11:47 +0200 Subject: changed server setup to config file, little rearrangement of sources --- cmps/tests/ConnectionHandlerTest.cc | 6 +++--- cmps/tests/FScanTest.cc | 17 ++++++++--------- cmps/tests/FileSystemTest.cc | 29 +++++++++++++++++++++++------ 3 files changed, 34 insertions(+), 18 deletions(-) (limited to 'cmps/tests') diff --git a/cmps/tests/ConnectionHandlerTest.cc b/cmps/tests/ConnectionHandlerTest.cc index 6e0257b..8ff3cce 100644 --- a/cmps/tests/ConnectionHandlerTest.cc +++ b/cmps/tests/ConnectionHandlerTest.cc @@ -24,7 +24,7 @@ */ #include #include -#include +#include #include #include #include @@ -54,7 +54,7 @@ private: cServerConfig config; cConnectionHandler ch; const char *name; - cFilesystemScanner *scanner; + cFSMediaScanner *scanner; }; cTestUnit::cTestUnit(const char* Name, cConnectionPoint &cp) @@ -67,7 +67,7 @@ cTestUnit::cTestUnit(const char* Name, cConnectionPoint &cp) config.SetDocumentRoot("/media/video"); config.SetAppIcon("/media/favicon.ico"); - scanner = new cFilesystemScanner(); + scanner = new cFSMediaScanner(); if (!scanner) { fprintf(stderr, "could not initialize application! (1)"); exit(-1); diff --git a/cmps/tests/FScanTest.cc b/cmps/tests/FScanTest.cc index 3a60bfb..a426c0d 100644 --- a/cmps/tests/FScanTest.cc +++ b/cmps/tests/FScanTest.cc @@ -1,33 +1,32 @@ /** * ======================== legal notice ====================== - * + * * File: FScanTest.cc * Created: 02.07.2012, 16 * Author: Geronimo * Project: cmps - the backend (server) part of compound media player - * + * * 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 - * + * * -------------------------------------------------------------- */ #include #include #include #include -#include -#include +#include #include #include @@ -73,7 +72,7 @@ void FScanTest::test4() ///< file server (added 18G audio) found 5698 media, in 44653 ms. ///< file server (same files, fresh reboot) found 5698 media, in 54723 ms. { - cFilesystemScanner scanner; + cFSMediaScanner scanner; cAbstractMedia *media; std::cout << "FScanTest test 4" << std::endl; diff --git a/cmps/tests/FileSystemTest.cc b/cmps/tests/FileSystemTest.cc index 42a7836..3908941 100644 --- a/cmps/tests/FileSystemTest.cc +++ b/cmps/tests/FileSystemTest.cc @@ -1,10 +1,27 @@ -/* - * File: FileSystemTest.cc - * Author: django - * - * Created on 21.07.2012, 12:40:48 +/** + * ======================== legal notice ====================== + * + * File: FileSystemTest.cc + * Created: 21.07.2012, 12 + * Author: Geronimo + * Project: cmps - the backend (server) part of compound media player + * + * 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 + * + * -------------------------------------------------------------- */ - #include #include #include -- cgit v1.2.3