Package devplugin

Examples of devplugin.Channel


    GZIPOutputStream gOut = new GZIPOutputStream(stream);

    OutputStreamWriter writer = new OutputStreamWriter(gOut, "ISO-8859-15");
    for (int i = 0; i < getChannelCount(); i++) {
      ChannelItem channelItem = mChannelList.get(i);
      Channel channel = channelItem.getChannel();
      StringBuilder line = new StringBuilder();
      line.append(channel.getCountry()).append(';').append(
          channel.getTimeZone().getID());
      line.append(';').append(channel.getId());
      line.append(';').append(channel.getUnescapedName());
      line.append(';').append(channel.getCopyrightNotice());
      line.append(';').append(
          channel.getWebpage() == null ? "http://tvbrowser.org" : channel
              .getWebpage());
      line.append(';').append(
          channelItem.getIconUrl() == null ? "" : channelItem.getIconUrl());
      line.append(';').append(channel.getCategories());
      line.append(";\"")
          .append(StringEscapeUtils.escapeHtml(channel.getName())).append('"');
      writer.write(line.toString());
      writer.write('\n');
    }
    writer.close();
View Full Code Here


              } else {
                channelId = values[1];
              }
            }
           
            Channel ch = ChannelList.getChannel(dataServiceId, groupId, country, channelId);
            if (ch != null) {
              channels.add(ch);
            }
          }
        }
View Full Code Here

  }

  public static boolean channelBelongsToGroup(ChannelList list, String channelId, String country) {

      for (int i=0; i<list.getChannelCount(); i++) {
        Channel ch = list.getChannelAt(i);
        if (ch.getId().equals(channelId) && ch.getCountry().equals(country)) {
          return true;
        }
      }
        return false;
    }
View Full Code Here

            "<table width=\"100%\">" +
            "<tr><td class=\"group_info\"><strong># of channels:</strong></td><td class=\"group_info\">"+channelList.getChannelCount()+"</td></tr></table>" +
            "</td><td colspan=\""+DAY_COUNT+"\"></td></tr>");
   
    for (int ch = 0; ch < channelList.getChannelCount(); ch++) {
      Channel channel = channelList.getChannelAt(ch);
      mOut.print  ("<tr><th class=\"header_channel\" align=\"right\">" + channel + "</th>");
       
      for (int i=0; i< DAY_COUNT; i++) {
        int version = summaryFile.getDayProgramVersion(TODAY.addDays(i), channel.getCountry(), channel.getId(), 0);
        if (version >= 0) {
          mOut.print("<td class=\"table_content\"></td>");
        }
        else {
          mOut.print("<td class=\"table_empty\"></td>");
View Full Code Here

                String[] hourStr = result[i + 2].split(":");

                int hour = Integer.parseInt(hourStr[0]);
                int min = Integer.parseInt(hourStr[1]);

                Channel chan = conf.getChannelForExternalId(channel);

                if (chan != null) {
                  for (Iterator<Program> it = CapturePlugin.getPluginManager().getChannelDayProgram(date, chan); it.hasNext();) {
                    Program prog = it.next();
View Full Code Here

        && (program.getLength() >= TVRaterPlugin.MINLENGTH)) {
      return true;
    }

    if ((program.getTitle() != null) && (program.getLength() <= 0)) {
      Channel channel = program.getChannel();
      if (channel == null) {
        return false;
      }

      Date date = program.getDate();
View Full Code Here

    mProgramList = new ProgramList(model);
    mProgramList.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    mProgramList.setSelectionModel(m);
   
    Date programDate = p.getDate();
    Channel programChannel = p.getChannel();
   
    Iterator<Program> channelDayProgram = Plugin.getPluginManager().getChannelDayProgram(programDate,programChannel);
   
    while(channelDayProgram.hasNext() && model.size() <= additionalProgramCount) {
      Program prog = channelDayProgram.next();
View Full Code Here

      if(mEnd.get(Calendar.DAY_OF_MONTH) != day) {
        endTime += 60 * 24;
      }
     
      devplugin.Date programDate = mProgram.getDate();
      Channel programChannel = mProgram.getChannel();
     
      Iterator<Program> channelDayProgram = Plugin.getPluginManager().getChannelDayProgram(programDate, programChannel);
     
      boolean found = false;
     
View Full Code Here

        Iterator<Channel> iterator = mChannels.keySet().iterator();

        HashMap<Channel, SimpleChannel> cloneMap = (HashMap<Channel, SimpleChannel>) mChannels.clone();

        while (iterator.hasNext()) {
            Channel rchan = iterator.next();
            SimpleChannel channel = mChannels.get(rchan);
            if (!mSimpleChannels.contains(channel)) {
                cloneMap.remove(rchan);
            }
        }
View Full Code Here

      int row, int column) {
    JLabel label = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);

    if (value instanceof Channel) {

      Channel channel = (Channel) value;

      if (mChannelLabel == null) {
        mChannelLabel = new ChannelLabel();
      }
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.