public class Schedule
extends mvp.Model
| Modifier and Type | Field and Description |
|---|---|
protected CalendarDB |
calDB
Calendar database in which scheduled items are stored
|
protected Categories |
categories
Category list in which scheduled item categories are defined
|
| Constructor and Description |
|---|
Schedule(mvp.View view,
CalendarDB calDB)
Construct this with the given companion view and the parent CalendarDB
model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeAppointment(Appointment oldAppt,
Appointment newAppt)
Change the given old appointment to the given new one in the
current calendar.
|
void |
confirmMeeting(MeetingRequest meeting_req,
PossibleMeetingTimes possible_times,
int selected_time)
ConfirmMeeting takes a CalendarDB, MeetingRequest, list of
PossibleMeetingTimes, and a selected time from the list.
|
void |
deleteAppointment(Appointment appt)
Delete the given appointment from the current calendar.
|
Categories |
getCategories()
Return the categories component.
|
PossibleMeetingTimes |
listMeetingTimes(MeetingRequest request)
Produce the list of possible meeting times that satisfy the given
MeetingRequest.
|
void |
scheduleAppointment(Appointment appt)
ScheduleAppointment adds the given Appointment to the current Calendar
an appointment of the same time, duration, and title is not already
scheduled.
|
void |
scheduleEvent(Event event)
ScheduleEvent adds the given Event to the given CalendarDB, if an event
of the same start date and title is not already scheduled.
|
void |
scheduleMeeting(MeetingRequest meeting_req)
ScheduleMeeting adds a Meeting to the current calendar, based on the the
given MeetingRequest.
|
void |
scheduleTask(Task task)
ScheduleTask adds the given Task to the given CalendarDB, if a task of
the same start date, title, and priority is not already scheduled.
|
void |
setMeetingOptions(MeetingSchedulingOptions options)
Set the meeting options in the CalendarDB to those given.
|
void |
setTaskPriority(Task task,
int priority)
Set the priority of the given task to the given priority value.
|
protected Categories categories
protected CalendarDB calDB
public Schedule(mvp.View view,
CalendarDB calDB)
public void scheduleAppointment(Appointment appt)
public void scheduleMeeting(MeetingRequest meeting_req)
public PossibleMeetingTimes listMeetingTimes(MeetingRequest request)
public void setMeetingOptions(MeetingSchedulingOptions options)
public void confirmMeeting(MeetingRequest meeting_req, PossibleMeetingTimes possible_times, int selected_time)
public void scheduleTask(Task task)
public void scheduleEvent(Event event)
public void changeAppointment(Appointment oldAppt, Appointment newAppt)
public void deleteAppointment(Appointment appt)
public void setTaskPriority(Task task, int priority)
public Categories getCategories()