1bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell/*
2bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell * Copyright (C) 2010 The Android Open Source Project
3bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell *
4bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell * Licensed under the Apache License, Version 2.0 (the "License");
5bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell * you may not use this file except in compliance with the License.
6bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell * You may obtain a copy of the License at
7bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell *
8bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell *      http://www.apache.org/licenses/LICENSE-2.0
9bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell *
10bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell * Unless required by applicable law or agreed to in writing, software
11bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell * distributed under the License is distributed on an "AS IS" BASIS,
12bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell * See the License for the specific language governing permissions and
14bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell * limitations under the License.
15bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell */
16bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell
17bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushellpackage com.android.calendar;
18bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell
19bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushellimport android.app.backup.BackupAgentHelper;
20bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushellimport android.app.backup.SharedPreferencesBackupHelper;
21bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell
22bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushellpublic class CalendarBackupAgent extends BackupAgentHelper
23bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell{
24bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell    static final String SHARED_KEY = "shared_pref";
25bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell
26bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell    public void onCreate () {
27bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell        addHelper(SHARED_KEY, new SharedPreferencesBackupHelper(this,
28bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell                GeneralPreferences.SHARED_PREFS_NAME));
29bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell    }
30bdadecb6a5fc35b51bc3d488b5f0b4cbed987964Garth Bushell}
31