Commit 2388bcfd authored by nshah's avatar nshah

OCVET-260 OCVET-271 OCVET-275, Checking the latest stubs in, 16/May/13, 4:36pm

parent b7b722ba
......@@ -56,7 +56,11 @@ public abstract class ProgramAssociationTableManager
* @param locator A locator to specify the channels (transport streams)
* carry the PATs. Should correspond to one of the
* following OCAP URL forms:
* ocap://source_id, ocap://f=frequency.program_number
* ocap://source_id, ocap://n=service_name, ocap://f=frequency.program_number
*
* @throws IllegalArgumentException
* This exception is thrown when the <code>locator</code> parameter is
* not in the form of a valid OCAP URL as specified by this method.
*/
public abstract void addInBandChangeListener(
TableChangeListener listener,
......@@ -132,11 +136,15 @@ public abstract class ProgramAssociationTableManager
* @param locator A locator to specify the channels (transport
* streams) carrying the PATs. Should correspond
* to one of the following OCAP URL forms:
* ocap://source_id, ocap://f=frequency.program_number
* ocap://source_id, ocap://n=service_name, ocap://f=frequency.program_number
*
* @return The SIRequest object that identifies this
* asynchronous retrieval request and allows the
* request to be cancelled.
*
* @throws IllegalArgumentException
* This exception is thrown when the <code>locator</code> parameter is
* not in the form of a valid OCAP URL as specified by this method.
*/
public abstract javax.tv.service.SIRequest retrieveInBand(
javax.tv.service.SIRequestor requestor,
......
......@@ -54,8 +54,11 @@ public abstract class ProgramMapTableManager
* @param locator A locator to specify a virtual channel carrying
* the inband PMTs. Should correspond to one of the
* following OCAP URL forms:
* ocap://source_id, ocap://f=frequency.program_number
* ocap://source_id, ocap://n=service_name, ocap://f=frequency.program_number
*
* @throws IllegalArgumentException
* This exception is thrown when the <code>locator</code> parameter is
* not in the form of a valid OCAP URL as specified by this method.
*/
public abstract void addInBandChangeListener(
TableChangeListener listener,
......@@ -135,11 +138,15 @@ public abstract class ProgramMapTableManager
* @param locator A locator to specify a virtual channel carrying
* the inband PMTs. Should correspond to one of
* the following OCAP URL forms:
* ocap://source_id, ocap://f=frequency.program_number
* ocap://source_id, ocap://n=service_name, ocap://f=frequency.program_number
*
* @return The SIRequest object that identifies this
* asynchronous retrieval request and allows the
* request to be cancelled.
*
* @throws IllegalArgumentException
* This exception is thrown when the <code>locator</code> parameter is
* not in the form of a valid OCAP URL as specified by this method.
*/
public abstract javax.tv.service.SIRequest retrieveInBand(
javax.tv.service.SIRequestor requestor,
......
......@@ -357,7 +357,7 @@ public abstract class OcapRecordingManager extends RecordingManager
* @param requests List of <code>RecordingRequest</code> recordings
* to delete.
*
* @throws AccessDeniedException if the calling application is not granted
* @throws SecurityException if the calling application does not have
* MonitorAppPermission("handler.recording").
*/
public abstract void deleteRecordings(RecordingList requests);
......@@ -369,11 +369,18 @@ public abstract class OcapRecordingManager extends RecordingManager
* recordings maintained by this manager and delete all of the recordings
* in the database.
* </p><p>
* The recordings SHALL be deleted in order of pending recordings
* first in any order, then in progress recordings in any order, then failed
* recordings in any order, then completed recordings in any order.
* To avoid asynchronous race conditions while deleting <code>RecordingRequests</code> that are
* pending due to resource contention (i.e. tuner and storage availability),
* recordings that have acquired resources SHALL be deleted after all other
* <code>LeafRecordingRequests</code> have been deleted.
* </p><p>
* The implementation SHALL also delete all <code>RecordingRequests</code> in the DELETED_STATE.
* </p><p>
* Once all <code>LeafRecordingRequests</code> have been successfully deleted, the <code>ParentRecordingRequests * </code>
* SHALL then be deleted last.
* </p>
*
* @throws AccessDeniedException if the calling application is not granted
* @throws SecurityException if the calling application does not have
* MonitorAppPermission("handler.recording").
*/
public abstract void deleteAllRecordings();
......
// COPYRIGHT_BEGIN
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
//
// Copyright (C) 2008-2009, Cable Television Laboratories, Inc.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2. This program is distributed
// in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
// even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program. If not, see <http://www.gnu.org/licenses/>.
//
// Please contact CableLabs if you need additional information or
// have any questions.
//
// CableLabs
// 858 Coal Creek Cir
// Louisville, CO 80027-9750
// 303 661-9100
// oc-mail@cablelabs.com
//
// If you or the company you represent has a separate agreement with CableLabs
// concerning the use of this code, your rights and obligations with respect
// to this code shall be as set forth therein. No license is granted hereunder
// for any other purpose.
// COPYRIGHT_END
package org.ocap.hn.content;
/**
......@@ -9,15 +39,15 @@ public interface StreamableContentResource extends ContentResource
/**
* Gets the duration of this content.
*
* @return the duration of the content.
* @return the duration of the content or null if the duration is not known.
*/
public javax.media.Time getDuration();
/**
* Gets the Bitrate this content is encoded with or -1 if not known.
*
* @return the bit rate of the content in bytes per second or -1 if
* not known.
* @return the bit rate of the content in bytes per second or -1 if the bit rate is not
* known.
*/
public long getBitrate();
}
// COPYRIGHT_BEGIN
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
//
// Copyright (C) 2008-2009, Cable Television Laboratories, Inc.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2. This program is distributed
// in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
// even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program. If not, see <http://www.gnu.org/licenses/>.
//
// Please contact CableLabs if you need additional information or
// have any questions.
//
// CableLabs
// 858 Coal Creek Cir
// Louisville, CO 80027-9750
// 303 661-9100
// oc-mail@cablelabs.com
//
// If you or the company you represent has a separate agreement with CableLabs
// concerning the use of this code, your rights and obligations with respect
// to this code shall be as set forth therein. No license is granted hereunder
// for any other purpose.
// COPYRIGHT_END
package org.ocap.hn.content;
import java.awt.Dimension;
/**
* ContentResource to identify that a content item contains video/still image material.
* ContentResource to identify that a content item contains video/still image
* material.
*/
public interface VideoResource extends ContentResource {
public interface VideoResource extends ContentResource
{
/**
* Returns the resolution of the video/still image.
* @return the resolution of the video/still image
*
* @return the resolution of the video/still image or null if the resolution is not known.
*/
public Dimension getResolution();
/**
* Returns the color depth (in bits) of the video/still image.
* @return the color depth (in bits) of the video/still image.
*
* @return the color depth (in bits) of the video/still image or -1 if the color depth is not known.
*/
public int getColorDepth();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment