public class CalendarServiceImpl extends java.lang.Object implements CalendarService
Modifier and Type | Class and Description |
---|---|
static class |
CalendarServiceImpl.MAPICalendarProperties
MAPI properties that we use to get information about the calendar items.
|
static class |
CalendarServiceImpl.MAPIType
Types for the MAPI properties values.
|
class |
CalendarServiceImpl.NotificationsDelegate
Delegate class to be notified for calendar changes.
|
static class |
CalendarServiceImpl.ResponseStatus
Response statuses of the calendar events (meeting objects).
|
CalendarService.BusyStatusEnum
Modifier and Type | Field and Description |
---|---|
static long |
MAPI_UNICODE
The flag which signals that MAPI strings should be returned in the
unicode character set.
|
ProviderPresenceStatusListener |
presenceStatusListener |
PNAME_FREE_BUSY_STATUS_DISABLED
Constructor and Description |
---|
CalendarServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addFreeBusySateListener(FreeBusySateListener listener)
The method is not implemented yet.
|
void |
addToCurrentItems(CalendarItemTimerTask task)
Adds CalendarItemTimerTask to the list of current tasks.
|
void |
addToTaskMap(java.lang.String id,
CalendarItemTimerTask task)
Adds CalendarItemTimerTask to the map of tasks.
|
java.util.Map<ProtocolProviderService,PresenceStatus> |
getRememberedStatuses()
Returns the remembered presence statuses
|
CalendarService.BusyStatusEnum |
getStatus()
Returns the current value of the free busy status.
|
void |
handleProviderAdded(ProtocolProviderService pps) |
static java.lang.Object[] |
IMAPIProp_GetProps(java.lang.String entryId,
long[] propIds,
long flags)
Returns array of property values for the given calendar item.
|
boolean |
onThePhoneStatusChanged(java.util.Map<ProtocolProviderService,PresenceStatus> presenceStatuses)
Handles presence status changed from "On the Phone"
|
void |
removeFreeBusySateListener(FreeBusySateListener listener)
The method is not implemented yet.
|
void |
removeFromCurrentItems(CalendarItemTimerTask task)
Removes CalendarItemTimerTask from the list of current tasks.
|
void |
removeFromTaskMap(java.lang.String id)
Removes CalendarItemTimerTask from the map of tasks.
|
protected void |
setCurrentState(CalendarService.BusyStatusEnum state)
Changes the value of the current status
|
void |
start()
Retrieves, parses and stores all the calendar items from the outlook.
|
void |
updateStateFromCurrentItems()
Calculates and changes the value of current status using the current
active calendar items and their statuses.
|
public ProviderPresenceStatusListener presenceStatusListener
public static final long MAPI_UNICODE
public void addToTaskMap(java.lang.String id, CalendarItemTimerTask task)
id
- the id of the calendar item to be added.task
- the CalendarItemTimerTask instance to be added.public void removeFromTaskMap(java.lang.String id)
id
- the id of the calendar item to be removed.public void addToCurrentItems(CalendarItemTimerTask task)
task
- the CalendarItemTimerTask instance to be added.public void removeFromCurrentItems(CalendarItemTimerTask task)
task
- the task of the calendar item to be removed.public void start()
public static java.lang.Object[] IMAPIProp_GetProps(java.lang.String entryId, long[] propIds, long flags) throws MsOutlookMAPIHResultException
entryId
- the entry id of the calendar item.propIds
- the IDs of the properties that we are interested for.flags
- the flags.MsOutlookMAPIHResultException
protected void setCurrentState(CalendarService.BusyStatusEnum state)
state
- the new value.public boolean onThePhoneStatusChanged(java.util.Map<ProtocolProviderService,PresenceStatus> presenceStatuses)
onThePhoneStatusChanged
in interface CalendarService
presenceStatuses
- the remembered presence statusespublic void updateStateFromCurrentItems()
public CalendarService.BusyStatusEnum getStatus()
CalendarService
getStatus
in interface CalendarService
public void addFreeBusySateListener(FreeBusySateListener listener)
addFreeBusySateListener
in interface CalendarService
listener
- the listener to be added.public void removeFreeBusySateListener(FreeBusySateListener listener)
removeFreeBusySateListener
in interface CalendarService
listener
- the listener to be removed.public void handleProviderAdded(ProtocolProviderService pps)
public java.util.Map<ProtocolProviderService,PresenceStatus> getRememberedStatuses()
getRememberedStatuses
in interface CalendarService
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.