home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -seriously_amiga- / programming / c / asap / preferences.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  2KB  |  43 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * APreferences wrapper class                                                *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_APreferences_H
  12. #define ASAP_APreferences_H
  13.  
  14. extern "C"
  15. {
  16.  #include <Proto/Intuition.h>
  17. }
  18.  
  19. class APreferences : public Preferences
  20. {
  21.  public:
  22.  inline APreferences * GetDefPrefs(long size);
  23.  inline APreferences * GetPrefs(long size);
  24.  inline APreferences * SetPrefs(long size, BOOL inform);
  25. };
  26. //----------------------------------------------------------------------------
  27. APreferences * APreferences::GetDefPrefs (long size)
  28. {
  29.  return (APreferences *) ::GetDefPrefs(this, size);
  30. }
  31. //----------------------------------------------------------------------------
  32. APreferences * APreferences::GetPrefs (long size)
  33. {
  34.  return (APreferences *) ::GetPrefs(this, size);
  35. }
  36. //----------------------------------------------------------------------------
  37. APreferences * APreferences::SetPrefs (long size, BOOL inform = 1)
  38. {
  39.  return (APreferences *) ::SetPrefs(this, size, inform);
  40. }
  41.  
  42. #endif
  43.