You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/app/src/main/java/com/todoroo/astrid/backup/BackupConstants.java

61 lines
1.6 KiB
Java

/**
* Copyright (c) 2012 Todoroo Inc
*
* See the file "LICENSE" for the full license governing this code.
*/
package com.todoroo.astrid.backup;
/**
* Constants for backup XML attributes and nodes.
*
* @author Tim Su <tim@todoroo.com>
*
*/
class BackupConstants {
// Do NOT edit the constants in this file! You will break compatibility with old backups
// --- general xml
/** Tag containing Astrid backup data */
public static final String ASTRID_TAG = "astrid";
/** Attribute indicating application version */
public static final String ASTRID_ATTR_VERSION = "version";
/** Attribute indicating backup file format */
public static final String ASTRID_ATTR_FORMAT = "format";
// --- format 2
/** Tag containing a task */
public static final String TASK_TAG = "task";
/** Tag containing a comment item */
public static final String COMMENT_TAG = "comment";
/** Tag containing a metadata item */
public static final String METADATA_TAG = "metadata";
public static final String ALARM_TAG = "alarm";
public static final String LOCATION_TAG = "location";
public static final String TAG_TAG = "tag";
public static final String GOOGLE_TASKS_TAG = "googletasks";
/** Tag containing a tagdata item */
public static final String TAGDATA_TAG = "tagdata";
// --- general
public static final String XML_ENCODING = "utf-8";
public static final String EXPORT_FILE_NAME = "user.%s.xml";
public static final String BACKUP_FILE_NAME = "auto.%s.xml";
public static final String UPGRADE_FILE_NAME = "upgradefrom.%s.xml";
}