From 04a867b018a8c6761047ef8878a4434692673084 Mon Sep 17 00:00:00 2001 From: geronimo Date: Thu, 19 Jul 2012 15:10:24 +0200 Subject: add categories to json result message --- cmps/serverlib/include/JSonListAssembler.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'cmps/serverlib/include') diff --git a/cmps/serverlib/include/JSonListAssembler.h b/cmps/serverlib/include/JSonListAssembler.h index bfc68ed..6185508 100644 --- a/cmps/serverlib/include/JSonListAssembler.h +++ b/cmps/serverlib/include/JSonListAssembler.h @@ -1,25 +1,25 @@ /** * ======================== legal notice ====================== - * + * * File: JSonListAssembler.h * Created: 6. Juli 2012, 09:53 * 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 - * + * * -------------------------------------------------------------- */ #ifndef JSONLISTASSEMBLER_H @@ -29,6 +29,7 @@ #include class cStringBuilder; +class cJSonWriter; class cJSonListAssembler : public cAbstractListAssembler { public: cJSonListAssembler(); @@ -40,7 +41,10 @@ protected: virtual bool OpenList(cStringBuilder &sb, std::map &Categories, size_t total, size_t start = 0, uint delta = 40); virtual bool AddElement(cStringBuilder &sb, void *ListElement, bool odd); virtual bool CloseList(cStringBuilder &sb, size_t total, size_t start = 0, uint delta = 40); -}; + +private: + cJSonWriter *writer; + }; #endif /* JSONLISTASSEMBLER_H */ -- cgit v1.2.3