// Path: CucumberSync/src/main/java/org/exfio/csyncdroid/Constants.java
// public class Constants {
// 	public static final String APP_VERSION            = BuildConfig.VERSION_NAME;
// 	public static final String ACCOUNT_TYPE_CSYNC     = "org.exfio.csyncdroid.csync";
// 	public static final String ACCOUNT_TYPE_FXACCOUNT = "org.exfio.csyncdroid.fxaccount";
// 	public static final String ACCOUNT_TYPE_LEGACYV5  = "org.exfio.csyncdroid.legacyv5";
// 	public static final String ACCOUNT_TYPE_EXFIOPEER = "org.exfio.csyncdroid.exfiopeer";
// 	public static final String META_COLLECTION        = "meta";
// 	public static final String META_ID                = "exfio";
// 	public static final String ADDRESSBOOK_COLLECTION = "exfiocontacts";
// 	public static final String CALENDAR_COLLECTION    = "exfiocalendar";
// 	public static final String WEB_URL_HELP           = "https://exfio.org/cucumbersync";
// 	public static enum ResourceType {
// 		ADDRESS_BOOK,
// 		CALENDAR
// 	}
// }


import org.exfio.csyncdroid.BuildConfig;
import org.exfio.csyncdroid.Constants;
import android.accounts.Account;
import android.content.Context;
/*
 * Copyright (C) 2016 Gerry Healy <nickel_chrome@exfio.org> and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * This program is derived from DAVdroid, Copyright (C) 2014 Richard Hirner, bitfire web engineering
 * DavDroid is distributed under the terms of the GNU Public License v3.0, https://github.com/bitfireAT/davdroid
 */

package org.exfio.csyncdroid.syncadapter;



public class CSyncAccountSettings extends FxAccountAccountSettings {
    private final static String TAG = "weave.CsyncAccountSettings";

    private static final int SETTINGS_VERSION = 1;

    public static final String DEFAULT_ACCOUNT_SERVER = BuildConfig.CSYNC_DEFAULT_ACCOUNT_SERVER;
    public static final String DEFAULT_TOKEN_SERVER   = BuildConfig.CSYNC_DEFAULT_TOKEN_SERVER;

    public static final String KEY_CREATE_ACCOUNT     = "createaccount";

    // Override properties of superclass FxAccountAccountSettings
    //@Override
    protected String accountType() { return Constants.ACCOUNT_TYPE_CSYNC; }
    //@Override
    protected int settingsVersion() { return SETTINGS_VERSION; }

    public CSyncAccountSettings() {
// Path: CucumberSync/src/main/java/org/exfio/csyncdroid/Constants.java
// public class Constants {
// 	public static final String APP_VERSION            = BuildConfig.VERSION_NAME;
// 	public static final String ACCOUNT_TYPE_CSYNC     = "org.exfio.csyncdroid.csync";
// 	public static final String ACCOUNT_TYPE_FXACCOUNT = "org.exfio.csyncdroid.fxaccount";
// 	public static final String ACCOUNT_TYPE_LEGACYV5  = "org.exfio.csyncdroid.legacyv5";
// 	public static final String ACCOUNT_TYPE_EXFIOPEER = "org.exfio.csyncdroid.exfiopeer";
// 	public static final String META_COLLECTION        = "meta";
// 	public static final String META_ID                = "exfio";
// 	public static final String ADDRESSBOOK_COLLECTION = "exfiocontacts";
// 	public static final String CALENDAR_COLLECTION    = "exfiocalendar";
// 	public static final String WEB_URL_HELP           = "https://exfio.org/cucumbersync";
// 	public static enum ResourceType {
// 		ADDRESS_BOOK,
// 		CALENDAR
// 	}
// }


// Path: CucumberSync/src/main/java/org/exfio/csyncdroid/syncadapter/CSyncAccountSettings.java
import org.exfio.csyncdroid.BuildConfig;
import org.exfio.csyncdroid.Constants;
import android.accounts.Account;
import android.content.Context;

/*
 * Copyright (C) 2016 Gerry Healy <nickel_chrome@exfio.org> and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * This program is derived from DAVdroid, Copyright (C) 2014 Richard Hirner, bitfire web engineering
 * DavDroid is distributed under the terms of the GNU Public License v3.0, https://github.com/bitfireAT/davdroid
 */

package org.exfio.csyncdroid.syncadapter;



public class CSyncAccountSettings extends FxAccountAccountSettings {
    private final static String TAG = "weave.CsyncAccountSettings";

    private static final int SETTINGS_VERSION = 1;

    public static final String DEFAULT_ACCOUNT_SERVER = BuildConfig.CSYNC_DEFAULT_ACCOUNT_SERVER;
    public static final String DEFAULT_TOKEN_SERVER   = BuildConfig.CSYNC_DEFAULT_TOKEN_SERVER;

    public static final String KEY_CREATE_ACCOUNT     = "createaccount";

    // Override properties of superclass FxAccountAccountSettings
    //@Override
    protected String accountType() { return Constants.ACCOUNT_TYPE_CSYNC; }
    //@Override
    protected int settingsVersion() { return SETTINGS_VERSION; }

    public CSyncAccountSettings() {
        super();