home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / happydays-src-1.37.tar.gz / happydays-src-1.37.tar / happydays-1.37 / birthdate.h < prev    next >
C/C++ Source or Header  |  2000-11-03  |  1KB  |  45 lines

  1. /*
  2. HappyDays - A Birthdate displayer for the PalmPilot
  3. Copyright (C) 1999-2000 JaeMok Jeong
  4.  
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18. */
  19.  
  20. #ifndef _BIRTHDATE_H_
  21. #define _BIRTHDATE_H_
  22.  
  23. #include <PalmOS.h>
  24.  
  25. #include "happydays.h"
  26.  
  27. // custom field used Birthdate in AddressBook
  28. //
  29. extern Int16 gBirthDateField;
  30.  
  31. void PackBirthdate(BirthDate *birthdate, void* recordP);
  32. void UnpackBirthdate(BirthDate *birthdate,
  33.                      const PackedBirthDate *packedBirthdate);
  34.  
  35. UInt16 AddrGetBirthdate(DmOpenRef dbP, UInt16 AddrCategory, DateType start);
  36. Boolean AnalysisBirthDate(const char* birthdate,
  37.                           BirthdateFlag *flag,
  38.                           Int16* year, Int16* month, Int16* day);
  39.  
  40. Int16 UpdateBirthdateDB(DmOpenRef dbP, FormPtr frm);
  41.  
  42.  
  43.  
  44. #endif
  45.