blob: 86519b96e1faabfd35bd9a8e88ce9c0965389d03 [file] [log] [blame]
Alexandre Savardf7f9e0b2012-10-15 17:24:07 -04001/**
2 * Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
3 *
4 * Author: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 * If you own a pjsip commercial license you can also redistribute it
11 * and/or modify it under the terms of the GNU Lesser General Public License
12 * as an android library.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 */
22package com.savoirfairelinux.sflphone.utils;
23
24import com.savoirfairelinux.sflphone.R;
25import com.savoirfairelinux.sflphone.service.ISipService;
26import com.savoirfairelinux.sflphone.service.ServiceConstants;
27import com.savoirfairelinux.sflphone.service.StringMap;
28
Alexandre Savard68838112012-10-30 11:34:43 -040029import java.util.ArrayList;
Alexandre Savardf7f9e0b2012-10-15 17:24:07 -040030
31public interface AccountDetail {
32
33 public static class PreferenceEntry
34 {
35 public String mKey;
36 public int mLabelId;
Alexandre Savard20d0de02012-10-16 14:05:44 -040037 public boolean isTwoState;
Alexandre Savard68838112012-10-30 11:34:43 -040038 public String mValue;
Alexandre Savardf7f9e0b2012-10-15 17:24:07 -040039
40 public PreferenceEntry(String key, int labelId)
41 {
42 mKey = key;
43 mLabelId = labelId;
Alexandre Savard20d0de02012-10-16 14:05:44 -040044 isTwoState = false;
Alexandre Savard68838112012-10-30 11:34:43 -040045 mValue = "";
Alexandre Savard20d0de02012-10-16 14:05:44 -040046 }
47
48 public PreferenceEntry(String key, int labelId, boolean twoState)
49 {
50 mKey = key;
51 mLabelId = labelId;
52 isTwoState = twoState;
Alexandre Savard68838112012-10-30 11:34:43 -040053 mValue = "";
54 }
55
56 public PreferenceEntry(String key, int labelId, boolean twoState, String value)
57 {
58 mKey = key;
59 mLabelId = labelId;
60 isTwoState = twoState;
61 mValue = value;
Alexandre Savardf7f9e0b2012-10-15 17:24:07 -040062 }
63 }
64
Alexandre Savard68838112012-10-30 11:34:43 -040065 public ArrayList<PreferenceEntry> getDetailValues();
Alexandre Savardf7f9e0b2012-10-15 17:24:07 -040066
Alexandre Savard68838112012-10-30 11:34:43 -040067 public ArrayList<String> getValuesOnly();
68
69 public String getDetailString(String key);
70
71 public boolean getDetailBoolean();
Alexandre Savardf7f9e0b2012-10-15 17:24:07 -040072}
73