Package devplugin

Examples of devplugin.ChannelDayProgram


      // Inform the listeners about adding the new program
      if(oldProg != null || somethingChanged) {
        OnDemandDayProgramFile dayProgramFile = getCacheEntry(date, channel, true, false);

        ChannelDayProgram dayProgram = dayProgramFile.getDayProgram();

        if(oldProg instanceof ChannelDayProgram) {
          fireDayProgramTouched((ChannelDayProgram)oldProg,dayProgram);
        }
        else {
View Full Code Here


      if (knownStatus == TvDataInventory.OTHER_VERSION) {
        // The day program was replaced -> fire a deleted event
        // (And later an added event)

        // Since we don't have the old day program we use a dummy program
        ChannelDayProgram dayProg = new MutableChannelDayProgram(date, channel);
        fireDayProgramTouched(dayProg, null);
        fireDayProgramDeleted(dayProg);
      }

      // Set the day program to 'known'
View Full Code Here

  private Program getFirstNextDayProgram(ChannelDayProgram channelProg) {
    Date nextDate = channelProg.getDate().addDays(1);
    Channel channel = channelProg.getChannel();
    TvDataBase db = TvDataBase.getInstance();
    ChannelDayProgram nextDayProg = db.getDayProgram(nextDate, channel, true);

    if ((nextDayProg != null) && (nextDayProg.getProgramCount() > 0)) {
      return (nextDayProg.getProgramAt(0));
    }

    return null;
  }
View Full Code Here

    final Date currentDate = Date.getCurrentDate();
    for (Channel channel : ChannelList.getSubscribedChannels()) {
      if (channel.getDefaultName().equalsIgnoreCase(channelName)) {
        int wrongDays = 0;
        for (int days = 0; days < 3; days++) {
          ChannelDayProgram dayProgram = TvDataBase.getInstance()
              .getDayProgram(currentDate.addDays(days), channel);
          if (dayProgram != null) {
            Iterator<Program> it = dayProgram.getPrograms();
            if (it != null) {
              while (it.hasNext()) {
                Program program = it.next();
                if (program.getTitle().equals(programTitle)) {
                  int delta = Math.abs(program.getStartTime()
View Full Code Here

TOP

Related Classes of devplugin.ChannelDayProgram

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.