Checked in patch #162945 for bug 220075:Make task start date/due date optional

(Adds IsSet to oeDateTime interface)
This commit is contained in:
mostafah%oeone.com 2004-10-28 15:52:09 +00:00
parent 8ab7eaf00c
commit 0cef8b0a0f
2 changed files with 8 additions and 1 deletions

View File

@ -201,7 +201,13 @@ NS_IMETHODIMP oeDateTimeImpl::SetTimeInTimezone( PRTime ms, const char *tzid )
NS_IMETHODIMP oeDateTimeImpl::Clear()
{
m_datetime = icaltime_null_time();
m_datetime = icaltime_null_time();
return NS_OK;
}
NS_IMETHODIMP oeDateTimeImpl::GetIsSet(PRBool *retval)
{
*retval = ! icaltime_is_null_time(m_datetime);
return NS_OK;
}

View File

@ -74,6 +74,7 @@ interface oeIDateTime : nsISupports
attribute short minute;
attribute boolean utc;
readonly attribute string tzID;
readonly attribute boolean isSet;
PRTime getTime();
void setTime( in PRTime ms );
void setTimeInTimezone( in PRTime ms, in string tzID );