/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* 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.
*/
namespace Tizen.Pims.Calendar
{
///
/// This class provides enumerations about calendar information.
///
///
/// Most enumerations are based on vcalendar, icalendar(ver 2.0) specification.
/// https://www.ietf.org/rfc/rfc2445.txt
///
public static class CalendarTypes
{
///
/// Enumeration for Default book
///
public enum DefaultBook
{
///
/// Default event calendar book.
///
Event,
///
/// Default Todo calendar book.
///
Todo,
///
/// Default Birthday calendar book.
///
Birthday,
}
///
/// Enumeration for Store type
///
public enum StoreType
{
///
/// Book type
///
Book,
///
/// Event type
///
Event,
///
/// Todo type
///
Todo,
}
///
/// Enumeration for the book mode.
///
public enum BookMode
{
///
/// All modules can read and write records of this calendar_book
///
Default,
///
/// All modules can only read records of this calendar book
///
ReadOnly,
}
///
/// Enumeration for the event status.
///
public enum EventStatus
{
///
/// No status
///
None = 0x01,
///
/// The event is tentative
///
Tentative = 0x02,
///
/// The event is confirmed
///
Confirmed = 0x04,
///
/// The event is cancelled
///
Cancelled = 0x08,
}
///
/// Enumeration for for the status of a to-do.
///
public enum TodoStatus
{
///
/// No status
///
None = 0x0100,
///
/// Needs action status
///
NeedAction = 0x0200,
///
/// Completed status
///
Completed = 0x0400,
///
/// Work in process status
///
InProcess = 0x0800,
///
/// Cancelled status
///
Cancelled = 0x1000,
}
///
/// Enumeration for the busy status of an event.
///
public enum BusyStatus
{
///
/// The free status
///
Free,
///
/// The busy status
///
Busy,
///
/// The unavailable status
///
Unavailable,
///
/// The tentative status
///
Tentative,
}
///
/// Enumeration for the calendar sensitivity type.
///
public enum Sensitivity
{
///
/// Public Sensitivity
///
Public,
///
/// Private Sensitivity
///
Private,
///
/// Confidential Sensitivity
///
Confidential,
}
///
/// Enumeration for the meeting status.
///
public enum MeetingStatus
{
///
/// No meeting
///
NoMeeting,
///
/// Meeting exists
///
Meeting,
///
/// Meeting received
///
Received,
///
/// Meeting cancelled
///
Cancelled,
}
///
/// Enumeration for the calendar event item's priority
///
public enum Priority
{
///
/// No priority
///
None = 0x01,
///
/// Low priority
///
High = 0x02,
///
/// Normal priority
///
Normal = 0x04,
///
/// High priority
///
Low = 0x08,
}
///
/// Enumeration for the frequency of an event's recurrence.
///
public enum Recurrence
{
///
/// No recurrence event
///
None,
///
/// An event occurs every day
///
Daily,
///
/// An event occurs on the same day of every week. According to the week flag, the event will recur every day of the week
///
Weekly,
///
/// An event occurs on the same day of every month
///
Monthly,
///
/// An event occurs on the same day of every year
///
Yearly,
}
///
/// Enumeration for the range type.
///
public enum RangeType
{
///
/// Range until
///
Until,
///
/// Range count
///
Count,
///
/// No range
///
None,
}
///
/// Enumeration for the system type.
///
public enum SystemType
{
///
/// Locale's default calendar
///
Default,
///
/// Locale's default calendar
///
Gregorian,
///
/// East Asian lunisolar calendar
///
Lunisolar,
}
///
/// Enumeration for the alarm time unit type of an event, such as minutes, hours, days, and so on.
///
public enum TickUnit
{
///
/// No reminder set
///
None = -1,
///
/// Specific in seconds
///
Specific = 1,
///
/// Alarm time unit in minutes
///
Minute = 60,
///
/// Alarm time unit in hours
///
Hour = 3600,
///
/// Alarm time unit in days
///
Day = 86400,
///
/// Alarm time unit in weeks
///
Week = 604800,
}
///
/// Enumeration for weekdays.
///
public enum WeekDay
{
///
/// Sunday
///
Sunday = 1,
///
/// Monday
///
Monday,
///
/// Tuesday
///
Tuesday,
///
/// Wednesday
///
Wednesday,
///
/// Thursday
///
Thursday,
///
/// Friday
///
Friday,
///
/// Saturday
///
Saturday,
}
///
/// Enumeration to specify the type of calendar user specified by the property.
///
public enum Cutype
{
///
/// An individual
///
Individual,
///
/// A group of individuals
///
Group,
///
/// A physical resource
///
Resource,
///
/// A room resource
///
Room,
///
/// Otherwise not known
///
Unknown,
}
///
/// Enumeration for the attendee role.
///
public enum AttendeeRole
{
///
/// Participation is required
///
ReqParticipant,
///
/// Accepted status
///
OptParticipant,
///
/// Non-Participant
///
NonParticipant,
///
/// Chairperson
///
Chair,
}
///
/// Enumeration for the attendee status.
///
public enum AttendeeStatus
{
///
/// Pending status
///
Pending,
///
/// Accepted status
///
Accepted,
///
/// Declined status
///
Declined,
///
/// Tentative status
///
Tentative,
///
/// Delegated status
///
Delegated,
///
/// Completed status
///
Completed,
///
/// In process status
///
InProcess,
}
///
/// Enumeration for the alarm action.
///
public enum Action
{
///
/// Audio action
///
Audio,
///
/// Display action
///
Display,
///
/// Email action
///
Email,
}
}
}