Package devplugin

Examples of devplugin.Channel


      }
    }

    public Channel[] getAvailableChannels() {
      return new Channel[] {
        new Channel(null, "Test", "test", TimeZone.getTimeZone("MET"), "de",null)
      };
    }
View Full Code Here


    public SimplePDS() {
        java.util.TimeZone zone = java.util.TimeZone.getTimeZone("GMT+1");
        String c = "(c) by TV-Browser";

        mChannelList = new Channel[] {
            new Channel(null, "Kanal 12", "kanal12", zone, "de", c),
            new Channel(null, "Quiz 44", "quiz44", zone, "de", c),
            new Channel(null, "Einkauf", "einkauf", zone, "de", c),
        };
    }
View Full Code Here

  private ProgramFrameDispatcher getProgramDispatcher(String channelId) {
    ProgramFrameDispatcher dispatcher = mDispatcherHash.get(channelId);
    if (dispatcher == null) {
      String[] s = channelId.split("_");
      Channel channel;
      if (s.length == 2) {
        channel = new Channel(null, s[0], s[1], java.util.TimeZone.getTimeZone("GMT+1"), "de", "(c) by TV-Browser");
      } else {
        channel = new Channel(null, s[0], s[0], java.util.TimeZone.getTimeZone("GMT+1"), "de", "(c) by TV-Browser");
      }
      dispatcher = new ProgramFrameDispatcher(channel);
      mDispatcherHash.put(channelId, dispatcher);
    }
    return dispatcher;
View Full Code Here

        recordingEnd.add(Calendar.MINUTE, length);

        int recordingStartMinutes = startHour * 60 + startMinute;
        int recordingEndMinutes = recordingStartMinutes + length;

        Channel tvBrowserChannel = configuration.getChannelForService(serviceNumber, type == TopfieldServiceType.TV);
        if (tvBrowserChannel != null) {
          Iterator<Program> programIterator = Plugin.getPluginManager().getChannelDayProgram(new Date(recordingStart),
              tvBrowserChannel);

          while (programIterator.hasNext()) {
View Full Code Here

        if (version >= 2) {
          groupId = (String) in.readObject();
        }

        String channelId = (String) in.readObject();
        Channel ch = Channel.getChannel(dataServiceClassName, groupId, null,
            channelId);

        if (ch != null) {
          channels.add(ch);
        }
      } else {
        Channel ch = Channel.readData(in, true);

        if (ch != null) {
          channels.add(ch);
        }
      }
View Full Code Here

        }

        count = stream.readInt();

        for (int i = 0; i < count; i++) {
            Channel ch = Channel.readData(stream, true);
            DreamboxChannel dch = getDreamboxChannelForRef(stream.readUTF());
            mChannels.put(ch, dch);
            mDChannels.put(dch, ch);
        }
View Full Code Here

            address = null;
          }
        }
        // create address of channel on the fly
        if (address != null && address.getUrl().equals(CHANNEL_SITE)) {
          final Channel channel = program.getChannel();
          address = new WebAddress(mLocalizer.msg("channelPage",
              "Open page of {0}", channel.getName()), channel.getWebpage(),
              null, false, address.isActive());
          actionName = address.getName();
/*
          // automatically add separator if it is the last menu item (as it is by default)
          if (i == mAddresses.size() - 1) {
View Full Code Here

        for (int day = 0; day < dateCount; day++) {
          for (TvDataLevel element : mSubscribedLevelArr) {
            String level = element.getId();
            Iterator<Channel> it=group.getChannels();
            while (it.hasNext()) {
              Channel ch=it.next();
              addDownloadJob(updateManager, group.getMirror(), date, level, ch,
                      ch.getCountry(), receiveDH, updateDH, summaryFile);
            }
          }
          date = date.addDays(1);
        }
      }
View Full Code Here

   * @param program The program to dispatch
   */
  public void dispatch(Program program) {
   
    Date date = program.getDate();
    Channel channel = program.getChannel();

    MutableChannelDayProgram channelDayProg
      = getChannelDayProgram(date, channel, true);

    channelDayProg.addProgram(program);
View Full Code Here

          categories = Integer.parseInt(categoryStr);
        } catch (NumberFormatException e) {
          categories = Channel.CATEGORY_NONE;
        }
      }
      Channel channel = new Channel(dataService, name, id, TimeZone.getTimeZone(timezone), country, copyright,
          webpage, mGroup, null, categories, unescapedname);
      if (iconLoader != null && iconUrl != null && iconUrl.length() > 0) {
        Icon icon = iconLoader.getIcon(id, iconUrl);
        if (icon != null) {
          channel.setDefaultIcon(icon);
        }
      }
      addChannel(channel, iconUrl);
      lineCount++;
    }
View Full Code Here

TOP

Related Classes of devplugin.Channel

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.