mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3e283469db
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-26 (Fri, 26 Aug 2016)
Origin message was:
------------------
- tuxboxapi: remove obsolete Tuxbox.LogosURL from getLogoFile()
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
103 lines
3.0 KiB
C++
103 lines
3.0 KiB
C++
#ifndef __nhttpd_neutrinoapi_h__
|
|
#define __nhttpd_neutrinoapi_h__
|
|
|
|
// c++
|
|
#include <map>
|
|
#include <string>
|
|
|
|
// tuxbox
|
|
#include <eventserver.h>
|
|
#include <sectionsdclient/sectionsdclient.h>
|
|
#include <timerdclient/timerdclient.h>
|
|
#include <zapit/client/zapitclient.h>
|
|
|
|
// nhttpd
|
|
#include <helper.h>
|
|
#include "neutrinoyparser.h"
|
|
#include "controlapi.h"
|
|
#include <OpenThreads/ScopedLock>
|
|
|
|
//-------------------------------------------------------------------------
|
|
// No Class Helpers
|
|
const char * _getISO639Description(const char * const iso);
|
|
bool _initialize_iso639_map(void);
|
|
|
|
//-------------------------------------------------------------------------
|
|
class CNeutrinoAPI
|
|
{
|
|
private:
|
|
CChannelEventList eList;
|
|
OpenThreads::Mutex *pmutex;
|
|
std::map<unsigned, CChannelEvent *> ChannelListEvents;
|
|
|
|
// complete channellists
|
|
//CZapitClient::BouquetChannelList RadioChannelList,TVChannelList;
|
|
// events of actual channel
|
|
// List of available tv bouquets
|
|
//std::map<int, CZapitClient::BouquetChannelList> TVBouquetsList;
|
|
// List of available radio bouquets
|
|
//std::map<int, CZapitClient::BouquetChannelList> RadioBouquetsList;
|
|
// List of bouquets
|
|
CZapitClient::BouquetList BouquetList;
|
|
public:
|
|
// Clientlibs
|
|
CSectionsdClient *Sectionsd;
|
|
CZapitClient *Zapit;
|
|
CTimerdClient *Timerd;
|
|
CEventServer *EventServer;
|
|
|
|
|
|
//bool standby_mode;
|
|
|
|
// some constants
|
|
static std::string Dbox_Hersteller[4];
|
|
static std::string videooutput_names[5];
|
|
static std::string videoformat_names[5];
|
|
static std::string audiotype_names[5];
|
|
static std::string mpegmodes[];
|
|
static std::string ddmodes[];
|
|
|
|
// get functions to collect data
|
|
bool GetChannelEvents(void);
|
|
#if 0 /* unused funktion*/
|
|
bool GetStreamInfo(int bitinfo[10]);
|
|
CZapitClient::BouquetChannelList *GetBouquet(unsigned int BouquetNr, int Mode);
|
|
CZapitClient::BouquetChannelList *GetChannelList(int Mode);
|
|
void UpdateBouquet(unsigned int BouquetNr);
|
|
void UpdateChannelList(void);
|
|
#endif
|
|
std::string GetServiceName(t_channel_id channel_id);
|
|
|
|
// support functions
|
|
void ZapTo (const char * const target);
|
|
void ZapToSubService(const char * const target);
|
|
void ZapToChannelId (t_channel_id channel_id);
|
|
t_channel_id ChannelNameToChannelId(std::string search_channel_name);
|
|
|
|
void UpdateBouquets(void);
|
|
|
|
std::string timerEventType2Str(CTimerd::CTimerEventTypes type);
|
|
std::string timerEventRepeat2Str(CTimerd::CTimerEventRepeat rep);
|
|
std::string getVideoAspectRatioAsString(void);
|
|
int setVideoAspectRatioAsString(std::string newRatioString);
|
|
std::string getVideoResolutionAsString(void);
|
|
std::string getVideoFramerateAsString(void);
|
|
std::string getAudioInfoAsString(void);
|
|
std::string getCryptInfoAsString(void);
|
|
std::string getLogoFile(t_channel_id channelId);
|
|
public:
|
|
CNeutrinoAPI();
|
|
~CNeutrinoAPI(void);
|
|
|
|
CNeutrinoYParser *NeutrinoYParser;
|
|
CControlAPI *ControlAPI;
|
|
void Lock() { pmutex->lock(); }
|
|
void Unlock() { pmutex->unlock(); }
|
|
void GetChannelEvent(t_channel_id channel_id, CChannelEvent &event);
|
|
|
|
//friend class CNeutrinoYParser; // Backreference
|
|
//friend class CControlAPI;
|
|
};
|
|
|
|
#endif /*__nhttpd_neutrinoapi_h__*/
|