summaryrefslogtreecommitdiff
path: root/p2pvr/devices/mockTuner.h
blob: 220b5356c436b0eabb829b686aea212f44f41962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef P2PVR_MOCKTUNER_H
#define P2PVR_MOCKTUNER_H

#include <dvb.h>
#include <Ice/BuiltinSequences.h>

class MockTuner : public P2PVR::PrivateTuner {
	public:

		void TuneTo(const DVBSI::DeliveryPtr &, const Ice::Current&);
		int GetStatus(const Ice::Current&);

		void ScanAndSendNetworkInformation(const P2PVR::RawDataClientPrx & client, const Ice::Current&);
		void SendNetworkInformation(const P2PVR::RawDataClientPrx & client, const Ice::Current&);
		void SendBouquetAssociations(const P2PVR::RawDataClientPrx & client, const Ice::Current&);
		void SendServiceDescriptions(const P2PVR::RawDataClientPrx & client, const Ice::Current&);
		void SendProgramMap(Ice::Int pid, const P2PVR::RawDataClientPrx & client, const Ice::Current&);
		void SendProgramAssociationTable(const P2PVR::RawDataClientPrx & client, const Ice::Current&);
		void SendEventInformation(const P2PVR::RawDataClientPrx & client, const Ice::Current&);

		int StartSendingTS(const P2PVR::PacketIds & pids, const P2PVR::RawDataClientPrx & client, const Ice::Current &);
		int StartSendingSection(Ice::Int pid, const P2PVR::RawDataClientPrx & client, const Ice::Current &);
		void StopSending(int handle, const Ice::Current &);

		Ice::Long GetLastUsedTime(const Ice::Current&);

	protected:
		void DecompressAndSendPackets(const Ice::ByteSeq &, const P2PVR::RawDataClientPrx &, const Ice::Current&) const;
};

#endif