Package captureplugin.drivers.utils

Examples of captureplugin.drivers.utils.ProgramTime


        if (JOptionPane.showConfirmDialog(parent, localizer.msg(NOT_CONFIGURED_TEXT, DEFAULT_NOT_CONFIGURED_TEXT),
            localizer.msg(NOT_CONFIGURED_TITLE, DEFAULT_NOT_CONFIGURED_TITLE), JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
          configDevice(parent);
        }
      } else {
        ProgramTime time = new ProgramTime(program);

        Calendar start = time.getStartAsCalendar();
        start.add(Calendar.MINUTE, configuration.getChannelPreroll(program.getChannel()) * -1);
        time.setStart(start.getTime());

        Calendar end = time.getEndAsCalendar();
        end.add(Calendar.MINUTE, configuration.getChannelPostroll(program.getChannel()));
        time.setEnd(end.getTime());

        TopfieldConnector connector = new TopfieldConnector(configuration);
        boolean timerAdded = false;
        try {
          timerAdded = connector.addPTimer(parent, service, time);
View Full Code Here


        return Arrays.asList(mListOfRecordings).contains(program);
    }

    public boolean add(Window parent, Program program) {
        if (testConfig(parent, program.getChannel())) {
            ProgramTime time = new ProgramTime(program);
            ProgramTimeDialog dialog = new ProgramTimeDialog(parent, time, false);
            UiUtilities.centerAndShow(dialog);

            if (dialog.getPrgTime() != null) {
                return mConnection.addToRecording(mConfig, dialog.getPrgTime());
View Full Code Here

        int size = in.readInt();

        mPrgTimeList = new ArrayList<ProgramTime>();

        for (int i = 0; i < size; i++) {
            ProgramTime prgTime = new ProgramTime();
            prgTime.readData(in);
            if (prgTime.getProgram() != null) {
                mPrgTimeList.add(prgTime);
            }
        }
    }
View Full Code Here

TOP

Related Classes of captureplugin.drivers.utils.ProgramTime

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.