Package devplugin

Examples of devplugin.Channel


    TimeZone timeZone = TimeZone.getTimeZone("GMT+0:00");
    for (int i = 0; i < numChannels; i++) {
      String channelName = settings.getProperty("ChannelTitle-" + i, "");
      String channelId = settings.getProperty("ChannelId-" + i, "");
      Channel ch = new Channel(this, channelName, channelId, timeZone, "gb", "(c) Radio Times", "http://www.radiotimes.co.uk", mRadioTimesChannelGroup);
      mChannels.add(ch);
      mLog.fine("Channel : " + ch.getName() + "{" + ch.getId() + "}");
    }

    mLog.info("Finished loading settings for RadioTimesBackstageDataService");
  }
View Full Code Here


    // TvBrowserDataService directory. But maybe the program was deleted from
    // the TvDataBase directory -> Check this.
    Date date = DayProgramFile.getDateFromFileName(fileName);
    String country = DayProgramFile.getCountryFromFileName(fileName);
    String channelName = DayProgramFile.getChannelNameFromFileName(fileName);
    Channel channel = mDataService.getChannel(country, channelName);
    if ((channel != null)
      && (! mDataService.isDayProgramInDataBase(date, channel)))
    {
      // This day program is NOT in the database -> update it
      mUpdater.addUpdateJob(date, channel);
View Full Code Here

    Properties prop = new Properties();

    prop.setProperty("NumberOfChannels", Integer.toString(mChannels.size()));
    int max = mChannels.size();
    for (int i = 0; i < max; i++) {
      Channel ch = mChannels.get(i);
      prop.setProperty("ChannelId-" + i, ch.getId());
      prop.setProperty("ChannelTitle-" + i, ch.getName());
    }
    mLog.info("Finished storing settings for RadioTimesDataService");

    return prop;
  }
View Full Code Here

      TopfieldServiceInfo service = TopfieldServiceInfo.createFromStream(stream);
      deviceChannels.put(service.getKey(), service);
    }

    for (int assigmentCount = stream.readInt(); assigmentCount > 0; assigmentCount--) {
      Channel browserChannel = Channel.readData(stream, true);
      TopfieldServiceInfo service = deviceChannels.get(stream.readUTF());
      deviceChannelMap.put(service, browserChannel);
      browserChannelMap.put(browserChannel, service);
    }
View Full Code Here

    for (HashMap<String, String> timer : timers) {

      DreamboxChannel channel = config.getDreamboxChannelForRef(timer.get("e2servicereference"));

      if (channel != null) {
        Channel tvbchannel = config.getChannel(channel);
        if (tvbchannel != null) {
          Calendar begin = Calendar.getInstance();
          begin.setTimeInMillis(getLong(timer.get("e2timebegin")) * 1000);
          int beginMinutes = begin.get(Calendar.HOUR_OF_DAY) * 60 + begin.get(Calendar.MINUTE);

View Full Code Here

    return columnIndex == 1;
  }

  public void setValueAt(Object aValue, int rowIndex, int columnIndex) {

    Channel key = getKeyForRow(rowIndex);

    if (key != null) {
      mData.getChannels().put(key, (String) aValue);
    }
View Full Code Here

  /**
   * returns the value at Table-Position (row,col)
   */
  public Object getValueAt(int row, int col) {
    Channel key = getKeyForRow(row);

    if (col == 0) {
      return key;
    } else {
      return mData.getChannels().get(key);
View Full Code Here

        mChannels = new ArrayList<Channel>();

        TimeZone timeZone = TimeZone.getTimeZone("GMT+1:00");
        for (int i = 0; i < numChannels; i++) {
            Channel ch = new Channel(this, settings.getProperty("ChannelTitle-" + i, ""), settings.getProperty("ChannelId-"
                    + i, ""), timeZone, "de", "Imported from Dreambox", "", mChannelGroup, null, Channel.CATEGORY_TV);

            mChannels.add(ch);
        }
    }
View Full Code Here

      if (mChannels != null) {
        prop.setProperty("NumberOfChannels", Integer.toString(mChannels.size()));
        int max = mChannels.size();
        for (int i = 0; i < max; i++) {
            Channel ch = mChannels.get(i);
            prop.setProperty("ChannelId-" + i, ch.getId());
            prop.setProperty("ChannelTitle-" + i, ch.getName());
        }
      } else {
        prop.setProperty("NumberOfChannels", "0");
      }
View Full Code Here

            if (bouquets != null) {
                for (String key : bouquets.keySet()) {
                    TreeMap<String, String> map = getServiceData(URLEncoder.encode(key, "UTF8"));

                    for (String mkey : map.keySet()) {
                        Channel ch = new Channel(this, map.get(mkey), "DREAM" + StringUtils.replace(mkey, ":", "_"), TimeZone.getTimeZone("GMT+1:00"), "de",
                                "Imported from Dreambox", "", mChannelGroup, null, Channel.CATEGORY_TV);
                        allChannels.add(ch);
                    }
                }
            }
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.