Package captureplugin.drivers.dreambox.connector

Examples of captureplugin.drivers.dreambox.connector.DreamboxChannel


        int count = stream.readInt();

        mDreamboxChannels = new DreamboxChannel[count];

        for (int i = 0; i < count; i++) {
            mDreamboxChannels[i] = new DreamboxChannel(stream);
        }

        count = stream.readInt();

        for (int i = 0; i < count; i++) {
            Channel ch = Channel.readData(stream, true);
            DreamboxChannel dch = getDreamboxChannelForRef(stream.readUTF());
            mChannels.put(ch, dch);
            mDChannels.put(dch, ch);
        }

View Full Code Here


                    mLocalizer.msg("expiredTitle","Expired"),
                    JOptionPane.INFORMATION_MESSAGE);
            return false;
        }

        final DreamboxChannel channel = (DreamboxChannel) mConfig.getExternalChannel(program.getChannel());

        if (channel == null) {
            int ret = JOptionPane.showConfirmDialog(parent,
                    mLocalizer.msg("notConfiguredText", "Channel not configured, do\nyou want to do this now?"),
                    mLocalizer.msg("notConfiguredTitle", "Configure"), JOptionPane.YES_NO_OPTION);
View Full Code Here

    /**
     * @see captureplugin.drivers.DeviceIf#executeAdditionalCommand(java.awt.Window,int,devplugin.Program)
     */
    public boolean executeAdditionalCommand(Window parent, int num, Program program) {
        if (num == 0) {
            final DreamboxChannel channel = (DreamboxChannel) mConfig.getExternalChannel(program.getChannel());

            if (channel != null) {
                new Thread(new Runnable() {
                    public void run() {
                        DreamboxConnector connect = new DreamboxConnector(mConfig);
                        connect.switchToChannel(channel);
                    }
                }).start();
            } else {
                int ret = JOptionPane.showConfirmDialog(parent,
                        mLocalizer.msg("notConfiguredText", "Channel not configured, do\nyou want to do this now?"),
                        mLocalizer.msg("notConfiguredTitle", "Configure"), JOptionPane.YES_NO_OPTION);

                if (ret == JOptionPane.YES_OPTION) {
                    configDevice(parent);
                }
            }
            return true;
        } else if (num == 1) {
            DreamboxConnector connect = new DreamboxConnector(mConfig);

            ParamParser parser = new ParamParser();

            connect.sendMessage(parser.analyse("{channel_name} - {leadingZero(start_hour,\"2\")}:{leadingZero(start_minute,\"2\")}-{leadingZero(end_hour,\"2\")}:{leadingZero(end_minute,\"2\")}\n{title}", program));
        } else if (num == 2) {
            final DreamboxChannel channel = (DreamboxChannel) mConfig.getExternalChannel(program.getChannel());
         
            if (channel != null) {
                DreamboxConnector connect = new DreamboxConnector(mConfig);
                if (!connect.streamChannel(channel)) {
                    int ret = JOptionPane.showConfirmDialog(parent,
View Full Code Here

     * @see captureplugin.drivers.DeviceIf#removeProgramWithoutExecution(devplugin.Program)
     */
    public void removeProgramWithoutExecution(Program p) {
        for (ProgramTime time : mProgramTimeList) {
            if (time.getProgram().equals(p)) {
                DreamboxChannel channel = (DreamboxChannel) mConfig.getExternalChannel(p.getChannel());
                if (channel != null) {
                    DreamboxConnector connector = new DreamboxConnector(mConfig);
                    connector.removeRecording(channel, time, mConfig.getTimeZone());
                }
            }
View Full Code Here

TOP

Related Classes of captureplugin.drivers.dreambox.connector.DreamboxChannel

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.