зеркало из https://github.com/mozilla/gecko-dev.git
use supplied date range rather than precalculated dates
This commit is contained in:
Родитель
f854c42d85
Коммит
646682771c
|
@ -54,8 +54,8 @@ public:
|
|||
NS_IMETHOD GetCal(NSCalendar*& aCal);
|
||||
NS_IMETHOD SetShell(nsCalendarShell* aShell) {mpShell = aShell; return NS_OK;}
|
||||
NS_IMETHOD FetchEventsByRange(
|
||||
const DateTime* aStart,
|
||||
const DateTime* aStop,
|
||||
DateTime* aStart,
|
||||
DateTime* aStop,
|
||||
JulianPtrArray* anArray
|
||||
);
|
||||
private:
|
||||
|
|
|
@ -56,8 +56,8 @@ public:
|
|||
NS_IMETHOD SetCal(NSCalendar* aCal);
|
||||
NS_IMETHOD GetCal(NSCalendar*& aCal);
|
||||
NS_IMETHOD FetchEventsByRange(
|
||||
const DateTime* aStart,
|
||||
const DateTime* aStop, JulianPtrArray* aL
|
||||
DateTime* aStart,
|
||||
DateTime* aStop, JulianPtrArray* aL
|
||||
);
|
||||
private:
|
||||
nsIVector * mLayers ;
|
||||
|
|
|
@ -71,8 +71,8 @@ public:
|
|||
NS_IMETHOD SetCal(NSCalendar* aCal) = 0;
|
||||
NS_IMETHOD GetCal(NSCalendar*& aCal) = 0;
|
||||
NS_IMETHOD FetchEventsByRange(
|
||||
const DateTime* aStart,
|
||||
const DateTime* aStop,
|
||||
DateTime* aStart,
|
||||
DateTime* aStop,
|
||||
JulianPtrArray* anArray
|
||||
) = 0;
|
||||
};
|
||||
|
|
|
@ -211,8 +211,8 @@ static int giViewPropListCount = 10;
|
|||
* @return NS_OK on success.
|
||||
*/
|
||||
nsresult nsLayer::FetchEventsByRange(
|
||||
const DateTime* aStart,
|
||||
const DateTime* aStop,
|
||||
DateTime* aStart,
|
||||
DateTime* aStop,
|
||||
JulianPtrArray* anArray
|
||||
)
|
||||
{
|
||||
|
@ -258,11 +258,16 @@ nsresult nsLayer::FetchEventsByRange(
|
|||
/*
|
||||
* Set up the range of time for which we'll pull events...
|
||||
*/
|
||||
#if 0
|
||||
int iOffset = 30;
|
||||
d.prevDay(iOffset);
|
||||
psDTStart = d.toISO8601().toCString("");
|
||||
d.nextDay(2 * iOffset);
|
||||
psDTEnd = d.toISO8601().toCString("");
|
||||
#endif
|
||||
|
||||
psDTStart = aStart->toISO8601().toCString("");
|
||||
psDTEnd = aStop->toISO8601().toCString("");
|
||||
|
||||
/*
|
||||
* The data is actually read and parsed in another thread. Set it all
|
||||
|
|
|
@ -148,8 +148,8 @@ nsresult nsLayerCollection::GetCal(NSCalendar*& aCal)
|
|||
* @return NS_OK on success
|
||||
*/
|
||||
nsresult nsLayerCollection::FetchEventsByRange(
|
||||
const DateTime* aStart,
|
||||
const DateTime* aStop,
|
||||
DateTime* aStart,
|
||||
DateTime* aStop,
|
||||
JulianPtrArray* anArray
|
||||
)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче