|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.pim.RecurrenceSet
public class RecurrenceSet
Basic information about a recurrence, following RFC 2445 Section 4.8.5. Contains the RRULEs, RDATE, EXRULEs, and EXDATE properties.
| Field Summary | |
|---|---|
long[] |
exdates
|
EventRecurrence[] |
exrules
|
long[] |
rdates
|
EventRecurrence[] |
rrules
|
| Constructor Summary | |
|---|---|
RecurrenceSet(ContentValues values)
Creates a new RecurrenceSet from information stored in the events table in the CalendarProvider. |
|
RecurrenceSet(Cursor cursor)
Creates a new RecurrenceSet from information stored in a database Cursor pointing to the events table in the
CalendarProvider. |
|
RecurrenceSet(String rruleStr,
String rdateStr,
String exruleStr,
String exdateStr)
|
|
| Method Summary | |
|---|---|
boolean |
hasRecurrence()
Returns whether or not a recurrence is defined in this RecurrenceSet. |
static long[] |
parseRecurrenceDates(String recurrence)
Parses the provided RDATE or EXDATE string into an array of longs representing each date/time in the recurrence. |
static boolean |
populateComponent(Cursor cursor,
ICalendar.Component component)
|
static boolean |
populateContentValues(ICalendar.Component component,
ContentValues values)
Populates the database map of values with the appropriate RRULE, RDATE, EXRULE, and EXDATE values extracted from the parsed iCalendar component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public EventRecurrence[] rrules
public long[] rdates
public EventRecurrence[] exrules
public long[] exdates
| Constructor Detail |
|---|
public RecurrenceSet(ContentValues values)
values - The values retrieved from the Events table.public RecurrenceSet(Cursor cursor)
Cursor pointing to the events table in the
CalendarProvider. The cursor must contain the RRULE, RDATE, EXRULE,
and EXDATE columns.
cursor - The cursor containing the RRULE, RDATE, EXRULE, and EXDATE
columns.
public RecurrenceSet(String rruleStr,
String rdateStr,
String exruleStr,
String exdateStr)
| Method Detail |
|---|
public boolean hasRecurrence()
public static long[] parseRecurrenceDates(String recurrence)
recurrence - The recurrence to be parsed.
public static boolean populateContentValues(ICalendar.Component component,
ContentValues values)
component - The iCalendar component containing the desired
recurrence specification.values - The db values that should be updated.
public static boolean populateComponent(Cursor cursor,
ICalendar.Component component)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||