move the ics file related constants in a the Constants.kt file

This commit is contained in:
tibbi 2017-04-02 22:19:29 +02:00
parent 0c83ad67fd
commit e9c63c3968
2 changed files with 25 additions and 24 deletions

View File

@ -48,3 +48,28 @@ val letterIDs = intArrayOf(R.string.sunday_letter, R.string.monday_letter, R.str
// special event flags
val FLAG_ALL_DAY = 1
// constants related to ICS file exporting / importing
val BEGIN_EVENT = "BEGIN:VEVENT"
val END = "END:VEVENT"
val DTSTART = "DTSTART"
val DTEND = "DTEND"
val DURATION = "DURATION:"
val SUMMARY = "SUMMARY:"
val DESCRIPTION = "DESCRIPTION:"
val UID = "UID:"
val ACTION = "ACTION:"
val TRIGGER = "TRIGGER:"
val RRULE = "RRULE:"
val CATEGORIES = "CATEGORIES:"
val DISPLAY = "DISPLAY"
val FREQ = "FREQ"
val UNTIL = "UNTIL"
val COUNT = "COUNT"
val INTERVAL = "INTERVAL"
val DAILY = "DAILY"
val WEEKLY = "WEEKLY"
val MONTHLY = "MONTHLY"
val YEARLY = "YEARLY"

View File

@ -16,30 +16,6 @@ class IcsImporter {
IMPORT_FAIL, IMPORT_OK, IMPORT_PARTIAL
}
private val BEGIN_EVENT = "BEGIN:VEVENT"
private val END = "END:VEVENT"
private val DTSTART = "DTSTART"
private val DTEND = "DTEND"
private val DURATION = "DURATION:"
private val SUMMARY = "SUMMARY:"
private val DESCRIPTION = "DESCRIPTION:"
private val UID = "UID:"
private val ACTION = "ACTION:"
private val TRIGGER = "TRIGGER:"
private val RRULE = "RRULE:"
private val CATEGORIES = "CATEGORIES:"
private val DISPLAY = "DISPLAY"
private val FREQ = "FREQ"
private val UNTIL = "UNTIL"
private val COUNT = "COUNT"
private val INTERVAL = "INTERVAL"
private val DAILY = "DAILY"
private val WEEKLY = "WEEKLY"
private val MONTHLY = "MONTHLY"
private val YEARLY = "YEARLY"
var curStart = -1
var curEnd = -1
var curTitle = ""