diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-01-19 22:03:03 +0000 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-01-19 22:03:03 +0000 |
commit | e5188e9418ed183d5d1a2ad4d3148f3578f2ead1 (patch) | |
tree | 89cd98939d217768bbfeafe2268c6fa388a41395 /epg_events.h | |
parent | 359faf6c427f3ced6ec938e8b029b5f614eed4eb (diff) | |
download | vdr-plugin-live-e5188e9418ed183d5d1a2ad4d3148f3578f2ead1.tar.gz vdr-plugin-live-e5188e9418ed183d5d1a2ad4d3148f3578f2ead1.tar.bz2 |
- 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.
Diffstat (limited to 'epg_events.h')
-rw-r--r-- | epg_events.h | 62 |
1 files changed, 62 insertions, 0 deletions
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 <ctime> +#include <vector> +#include <boost/shared_ptr.hpp> + +#include <vdr/plugin.h> +#include <vdr/channels.h> +#include <vdr/epg.h> +#include <vdr/config.h> +#include <vdr/i18n.h> + +#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<EpgEvent> EpgEventPtr; + + class EpgEvents : public std::vector<EpgEventPtr> { + public: + EpgEvents(); + virtual ~EpgEvents(); + + private: + }; +}; // namespace vdrlive + +#endif // VDR_LIVE_WHATS_ON_H + |