From e5188e9418ed183d5d1a2ad4d3148f3578f2ead1 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Fri, 19 Jan 2007 22:03:03 +0000 Subject: - Added new class epgEvent. Sie epg_events.h. This class collects epg data from other structures. It can the be used to appent to the page a hidden section with full epg datas for the epg-popup boxes. - Changed whats_on to uses this new feature. - No description in the event boxes any more. A mouse over tooltip shows a shortened version of the description. A click on 'more' displays a full epg box. - Added tip parameter to ajax_action_href. The text is displayed as tooltip when hoovering over the link. - Adapted style.css to make event boxes smaller. --- epg_events.h | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 epg_events.h (limited to 'epg_events.h') diff --git a/epg_events.h b/epg_events.h new file mode 100644 index 0000000..61ba3ff --- /dev/null +++ b/epg_events.h @@ -0,0 +1,62 @@ +#ifndef VDR_LIVE_WHATS_ON_H +#define VDR_LIVE_WHATS_ON_H + +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "live.h" + +namespace vdrlive +{ + + class EpgEvent + { + public: + EpgEvent(const std::string& id, const cEvent* event, const char* channelName = ""); + + virtual ~EpgEvent(); + + const std::string& Id() const { return eventId; } + + const std::string& Title() const { return title; } + + const std::string& ChannelName() const { return channel_name; } + + const std::string& ShortDescr() const { return short_descr; } + + const std::string& LongDescr() const { return long_descr; } + + const std::string StartTime(const char* format) const; + + const std::string EndTime(const char* format) const; + + private: + std::string eventId; + std::string title; + std::string channel_name; + std::string short_descr; + std::string long_descr; + time_t start_time; + time_t end_time; + }; + + typedef boost::shared_ptr EpgEventPtr; + + class EpgEvents : public std::vector { + public: + EpgEvents(); + virtual ~EpgEvents(); + + private: + }; +}; // namespace vdrlive + +#endif // VDR_LIVE_WHATS_ON_H + -- cgit v1.2.3