1d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy/*
2d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy * Copyright (C) 2013 Google Inc.
3d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy * Licensed to The Android Open Source Project.
4d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy *
5d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy * Licensed under the Apache License, Version 2.0 (the "License");
6d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy * you may not use this file except in compliance with the License.
7d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy * You may obtain a copy of the License at
8d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy *
9d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy *      http://www.apache.org/licenses/LICENSE-2.0
10d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy *
11d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy * Unless required by applicable law or agreed to in writing, software
12d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy * distributed under the License is distributed on an "AS IS" BASIS,
13d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy * See the License for the specific language governing permissions and
15d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy * limitations under the License.
16d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy */
17d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedypackage com.android.mail.preferences;
18d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy
19d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedyimport org.json.JSONException;
20d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedyimport org.json.JSONObject;
21d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy
22d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy/**
23d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy * Wraps around various classes used in Gmail's backup/restore mechanism.
24d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy */
25d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedypublic interface BackupSharedPreference {
26d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy    String getKey();
27d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy
28d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy    Object getValue();
29d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy
30d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy    JSONObject toJson() throws JSONException;
31d5edd2d02649dffb40065fdb6a16acf91552b800Scott Kennedy}
32