-- 
-- DO NOT EDIT THIS FILE. IT WILL BE OVERWRITTEN WHEN YOU UPGRADE RAINLENDAR!
-- 

--
-- XXX
--
-- Parameters: 
--    newMonth - XXX
-- Return:
--    Nothing
--
function Global_Snooze(uidItem, timeDuration)
	Rainlendar_SnoozeAlarm(uidItem, timeDuration)
	Rainlendar_Redraw(1)
end

function Global_SnoozeAll()
-- TODO: calculate some good snooze time

	uidAlarms = Rainlendar_GetAlarmItems()
	for key, value in pairs (uidAlarms) do
		Rainlendar_SnoozeAlarm(value, -1)
	end

	Rainlendar_Redraw(1)
end

function Global_Dismiss(uidItem)
	Rainlendar_DismissAlarm(uidItem)
	Rainlendar_Redraw(1)
end

function Global_DismissAll()
	uidAlarms = Rainlendar_GetAlarmItems()
	for key, value in pairs(uidAlarms) do
		Rainlendar_DismissAlarm(value)
	end
	
	Rainlendar_Redraw(1)
end
