1 /* 2 * Copyright (C) 2015 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License 15 */ 16 17 package com.android.tv.dvr; 18 19 import android.support.annotation.MainThread; 20 21 /** 22 * Full data manager. 23 * 24 * <p>The following operations need to be synced with permanent storage. The following commands are 25 * for internal use only. Do not call them from UI directly. 26 */ 27 @MainThread 28 interface WritableDvrDataManager extends DvrDataManager { 29 /** 30 * Add a new recording. 31 */ 32 void addScheduledRecording(ScheduledRecording scheduledRecording); 33 34 /** 35 * Add a season recording/ 36 */ 37 void addSeasonRecording(SeasonRecording seasonRecording); 38 39 /** 40 * Remove a recording. 41 */ 42 void removeScheduledRecording(ScheduledRecording ScheduledRecording); 43 44 /** 45 * Remove a season schedule. 46 */ 47 void removeSeasonSchedule(SeasonRecording seasonSchedule); 48 49 /** 50 * Update an existing recording. 51 */ 52 void updateScheduledRecording(ScheduledRecording r); 53 } 54