<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
                  android:title="@string/phone_accounts">

    <PreferenceCategory
        android:key="phone_accounts_accounts_list_category_key"
        android:title="@string/phone_accounts_settings_header">

        <PreferenceScreen
            android:key="phone_accounts_all_calling_accounts"
            android:title="@string/phone_accounts_all_calling_accounts"
            android:summary="@string/phone_accounts_all_calling_accounts_summary"
            android:persistent="false" >

            <intent android:action="android.intent.action.MAIN"
                android:targetPackage="com.android.server.telecom"
                android:targetClass="com.android.server.telecom.settings.EnableAccountPreferenceActivity" />
        </PreferenceScreen>

    </PreferenceCategory>

    <PreferenceCategory
        android:key="make_and_receive_calls_settings_category_key"
        android:title="@string/make_and_receive_calls"
        android:persistent="false">

        <com.android.phone.settings.AccountSelectionPreference
            android:key="default_outgoing_account"
            android:title="@string/phone_accounts_make_calls_with"
            android:defaultValue=""
            android:persistent="false"/>

        <PreferenceScreen
            android:key="smart_forwarding_configuration_key"
            android:title="@string/smart_forwarding_settings_menu"
            android:summary="@string/smart_forwarding_settings_menu_summary"
            android:persistent="false">

        </PreferenceScreen>

    </PreferenceCategory>

    <PreferenceCategory
        android:key="phone_accounts_sip_settings_category_key"
        android:title="@string/sip_settings"
        android:persistent="false">

        <PreferenceScreen
            android:title="@string/sip_accounts"
            android:persistent="false">

            <intent android:action="android.intent.action.MAIN"
                android:targetPackage="com.android.phone"
                android:targetClass="com.android.services.telephony.sip.SipSettings" />

        </PreferenceScreen>

        <ListPreference
            android:key="use_sip_calling_options_key"
            android:title="@string/sip_call_options_title"
            android:persistent="true"
            android:entries="@array/sip_call_options_entries"
            android:entryValues="@array/sip_call_options_values"/>

        <SwitchPreference
            android:key="sip_receive_calls_key"
            android:title="@string/sip_receive_calls"
            android:summary="@string/sip_receive_calls_summary"
            android:persistent="true"/>

    </PreferenceCategory>

</PreferenceScreen>