Package devplugin

Examples of devplugin.Date


    mDataService.checkCancelDownload();
   
    // We have a up-to-date version of the day program in the
    // 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)))
View Full Code Here


    if (!updateManager.checkConnection()) {
      return;
    }

    int max = channelArr.length;
    Date endDate = startDate.addDays(dateCount-1);

    monitor.setMaximum(max);
    monitor.setMessage(mLocalizer.msg("parsing", "Parsing Radio Times Data"));

    try {
View Full Code Here

              programs = new ArrayList<Program>(progCount);
              exporterMap.put(exporter,programs);
            }

            for (int v = 0; v < progCount; v++) {
              Date programDate = Date.readData(in);
              String progId = (String) in.readObject();
              if (programs != null) {
                Program program = Plugin.getPluginManager().getProgram(programDate, progId);
                programs.add(program);
              }
View Full Code Here

          if (end.get(Calendar.YEAR) != begin.get(Calendar.YEAR)) {
            days = 1;
          }

          for (int i = 0; i <= days; i++) {
            Iterator<Program> it = Plugin.getPluginManager().getChannelDayProgram(new Date(runner), tvbchannel);
            boolean found = false;

            while (it.hasNext() && !found) {
              Program prog = it.next();
              int progTime = prog.getHours() * 60 + prog.getMinutes() + (i * 24 * 60);
 
View Full Code Here

    public void endElement(String uri, String localName, String qName) throws SAXException {
        if (qName.equals("e2event")) {
            try {
                Calendar cal = Calendar.getInstance();
                cal.setTime(new java.util.Date(Long.parseLong(mCurrentEvent.get("e2eventstart")) * 1000));
                Date programDate = new Date(cal);
                MutableProgram prog = new MutableProgram(mChannel, programDate, cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), true);
                prog.setTitle(mCurrentEvent.get("e2eventtitle"));

                prog.setDescription(mCurrentEvent.get("e2eventdescriptionextended"));

View Full Code Here

        ProgramFrameDispatcher[] dispatcher = new ProgramFrameDispatcher[mChannelList.length];
        for (int i = 0; i < dispatcher.length; i++) {
            dispatcher[i] = new ProgramFrameDispatcher(mChannelList[i]);
        }

        Date date = Date.getCurrentDate();
        for (int d = 0; d < DAYS_TO_DOWNLOAD; d++) {
            for (int ch = 0; ch < mChannelList.length; ch++) {
                try {
                    extract(date, mChannelList[ch], dispatcher[ch]);
                } catch (Exception e) {
                    logException(e);
                }
            }
            date = date.addDays(1);
        }

        for (ProgramFrameDispatcher aDispatcher : dispatcher) {
            try {
                aDispatcher.store(dir);
View Full Code Here

public class SummaryFileTest extends TestCase {

  public void testSummaryFile()
    throws IOException, FileFormatException
  {
    Date date1 = new Date(2003, 12, 28);
    Date date2 = new Date(2003, 12, 31);
    Date date3 = new Date(2004, 1, 1);
    Date date4 = new Date(2004, 1, 2);
    Date date5 = new Date(2004, 1, 5);
    Date date6 = new Date(2004, 1, 6);
   
    String country = "de";
   
    String channelId1 = "Ch1";
    String channelId2 = "Ch2";
View Full Code Here

        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()) {
            channelHasData = true;
            Program program = programIterator.next();
View Full Code Here

    if (version == 1) {
      int size = in.readInt();
      for (int i = 0; i < size; i++) {
        in.readInt();   // read version
        int reminderMinutes = in.readInt();
        Date programDate = Date.readData(in);
        String programId = (String) in.readObject();
        Program program = Plugin.getPluginManager().getProgram(programDate, programId);

        // Only add items that were able to load their program
        if (program != null) {
View Full Code Here

      if (in != null) {
        try { in.close(); } catch(IOException exc) {}
      }
      DayProgramScheme scheme = new DayProgramScheme(mLocalizer.msg("defaultScheme","DefaultScheme"));
      scheme.setSettings(new DayProgramPrinterSettings(
              new Date(),
              3,
              null,
              6,
              24+3,
              5,
View Full Code Here

TOP

Related Classes of devplugin.Date

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.