%Library for decoding Palm(R) DateBook(TM) database files.
%Copyright (C) 2006  Romain Lenglet <rlenglet@users.forge.objectweb.org>
%
%This program is free software; you can redistribute it and/or
%modify it under the terms of the GNU General Public License
%as published by the Free Software Foundation; either version 2
%of the License, or (at your option) any later version.
%
%This program is distributed in the hope that it will be useful,
%but WITHOUT ANY WARRANTY; without even the implied warranty of
%MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%GNU General Public License for more details.
%
%You should have received a copy of the GNU General Public License
%along with this program; if not, write to the Free Software
%Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

%-version(0.1) % 2006-09-06

-record(database_hdr,
	{name, attributes, version, creation_date, modification_date,
	 last_backup_date, modification_number, app_info_index, sort_info_index,
	 type, creator, unique_index_seed}).

-record(record_list,
	{next_record_list_index, num_records}).

-record(pdb_record_entry,
	{local_chunk_index, attributes, unique_index}).

-record(datebook_record,
	{start_time, end_time, start_date, has_changed, alarm, repeat,
	 exception_dates, description, note}).

-record(datebook_alarm_advance,
	{advance, unit}).

-record(datebook_repeat,
	{type, end_date, frequency, repeat_on_bitfield, start_of_week}).

-record(datebook_date,
	{year, month, day}).

-record(datebook_time,
	{hour, minute}).

