/*
 * (c) 2005 Research Group Dr. Fuhrmann, University of Karlsruhe, Germany
 * All rights reserved.
 *
 * Author:
 *         Roman Krenicky
 *
 * $Id: blockentry.h,v 1.3 2005/11/21 09:39:01 kutzner Exp $
 *
 */

/*
  blockentry.h
  created: 5.2.2005
  last change: 12.3.2005
*/
/*! @file
    an entry describing (identifying) an EPG block; to be used in containers
*/

#ifndef _BLOCKENTRY_H
#define _BLOCKENTRY_H


#include "globalheader.h"

#include "epgtypes.h"

/*! an entry describing (identifying) one EPG block (i.e. the EPG data of one
    channel in one time block); to be used in containers
*/
class blockentry
{
  private:
   //! the channel, this EPG block belongs to
   epgchannel channel;
   //! the start time of this EPG block (timeblock, not time of first event!)
   time_t start_time;

  public:
   blockentry (void)  :  start_time(0)
      {}
   blockentry (const epgchannel &init_channel, time_t init_start_time)  :
         channel(init_channel), start_time(init_start_time)
      {}
   //blockentry (const blockentry&);  -> default implementation
   //bool operator= (const blockentry&);  -> default implementation
   bool operator== (const blockentry &other)  const;
   bool operator< (const blockentry &other)  const;
   epgchannel get_channel (void)  const
      {  return channel;  }
   time_t get_start_time (void)  const
      {  return start_time;  }
}; // blockentry



#endif // _BLOCKENTRY_H
