37 #include "trm/TunerReservation.h"
38 #include "trm/Activity.h"
39 #include "trm/TunerState.h"
46 typedef std::list<std::string> IdList;
48 typedef std::map<std::string, TunerReservation> ReservationCT;
49 Tuner(
const std::string & internalId);
50 const std::string &getId(
void)
const;
51 uint64_t getEndTime(
const Activity &activity)
const;
53 TunerReservation::TokenList & getReservationTokens(TunerReservation::TokenList & tokens)
const;
54 const TunerReservation &getReservation(
const std::string &reservationToken)
const;
55 TunerReservation &getReservation(
const std::string &reservationToken);
56 const TunerReservation &getReservation(
const Activity &activity,
int reservationState,
const std::string &serviceLocator=
"")
const;
58 const TunerState getState(
void)
const;
59 void setState(
const TunerState &state);
61 const std::string getServiceLocator(
bool considerFutureToken =
true)
const;
63 void addReservation(
const TunerReservation & reservation);
64 void releaseReservation(
const std::string & reservationToken);
67 bool assertTunerState(
int state,
int lowMark,
int highMark);
68 std::string internalId;
69 ReservationCT reservations;