home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / PowerPlant / AMReminder / CReminderEntry.h < prev   
Encoding:
Text File  |  1996-03-19  |  2.0 KB  |  71 lines  |  [TEXT/CWIE]

  1. // CReminderEntry -- data container class for AMReminder
  2. // Created 3/19/96 1:49 PM by AppMaker
  3.  
  4. #pragma once
  5.  
  6. #include <PP_Prefix.h>
  7.  
  8. #include "NeoTypes.h"
  9. #include CNeoPersistH
  10.  
  11. class CNeoDatabase;
  12. class CNeoMetaClass;
  13.  
  14. const NeoID        kReminderEntryID = 21;
  15.  
  16. //----------
  17. class CReminderEntry : public CNeoPersist {
  18. public:
  19.                 CReminderEntry ();
  20.                 CReminderEntry    (CNeoDatabase    *inFile);
  21.     virtual        ~CReminderEntry ();
  22.  
  23. // accessors
  24.     void        GetDateField    (StringPtr    text) const;
  25.     void        SetDateField    (ConstStr255Param    text);
  26.     void        GetTimeField    (StringPtr    text) const;
  27.     void        SetTimeField    (ConstStr255Param    text);
  28.     void        GetMessageField    (StringPtr    text) const;
  29.     void        SetMessageField    (ConstStr255Param    text);
  30.     long        GetAmPmChoice    () const {return mAmPmChoice;}
  31.     void        SetAmPmChoice    (long        state);
  32.     Boolean        GetShowAlertCheck    () const {return mShowAlertCheck;}
  33.     void        SetShowAlertCheck    (Boolean        state);
  34.     Boolean        GetPlaySoundCheck    () const {return mPlaySoundCheck;}
  35.     void        SetPlaySoundCheck    (Boolean        state);
  36.     Boolean        GetShowIconCheck    () const {return mShowIconCheck;}
  37.     void        SetShowIconCheck    (Boolean        state);
  38.     short        GetSoundIndex    () const {return mSoundIndex;}
  39.     void        SetSoundIndex    (short        state);
  40.  
  41. // NeoPersist
  42.     static    CNeoMetaClass*        GetMetaClass ();
  43.     static    void                AddMetaClass ();
  44.     static    CNeoPersist*        New ();
  45.     static    CReminderEntry*        FindByID    (CNeoDatabase        *aFile,
  46.                                         const NeoID            aID,
  47.                                         const Boolean        aDeeply,
  48.                                               NeoTestFunc1    aFunc = nil,
  49.                                               void            *aParam = nil,
  50.                                         const NeoLockType    aLock = kNeoDefaultLock);
  51.  
  52.     virtual NeoID        getClassID        () const {return kReminderEntryID;}
  53.     virtual long        getFileLength    () const;
  54.  
  55. // I/O
  56.     virtual void        readObject        (CNeoStream        *aStream,
  57.                                     const NeoTag        aTag);
  58.     virtual void        writeObject        (CNeoStream        *aStream,
  59.                                     const NeoTag        aTag);
  60.  
  61. private:
  62.     Str31        mDateField;
  63.     Str31        mTimeField;
  64.     Str255        mMessageField;
  65.     long        mAmPmChoice;
  66.     Boolean        mShowAlertCheck;
  67.     Boolean        mPlaySoundCheck;
  68.     Boolean        mShowIconCheck;
  69.     short        mSoundIndex;
  70. };
  71.