Package calendarexportplugin.utils

Examples of calendarexportplugin.utils.ICalFile


  public boolean exportPrograms(Program[] programs, CalendarExportSettings settings, AbstractPluginProgramFormating formating) {
    try {
      File file = File.createTempFile("tvbrowser", ".ics");
      file.deleteOnExit();
     
      ICalFile ical = new ICalFile();
      ical.export(file, programs, settings, formating);
     
      new ExecutionHandler("--merge " + file.getAbsolutePath(), "korganizer").execute();
      return true;
    } catch (IOException e) {
      ErrorHandler.handle("Could not export to KOrganizer.", e);
View Full Code Here


  }

  @Override
  protected void export(File file, Program[] programs, CalendarExportSettings settings,
      AbstractPluginProgramFormating formating) {
    new ICalFile().export(file, programs, settings, formating);
  }
View Full Code Here

TOP

Related Classes of calendarexportplugin.utils.ICalFile

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.