home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 2.0b3 / Examples / pre-built AMReminder / Procedural / AMReminderData.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-05  |  1.8 KB  |  94 lines  |  [TEXT/MMCC]

  1. /* AMReminderData.c -- application-specific data management */
  2. /* Created 01/01/95 12:01 PM by AppMaker */
  3.  
  4. /* This module contains data structures to access the data in your */
  5. /* document's file(s). The purpose is to isolate the details of the */
  6. /* data representation into this module and to provide accessor */
  7. /* functions for reading/writing logical pieces of the data. */
  8. /* For your application, you will probably rewrite most of this. */
  9. /* This module will not be regenerated by AppMaker unless you delete it. */
  10.  
  11. #include <Types.h>
  12. #include <Quickdraw.h>
  13. #include <Controls.h>
  14. #include <Events.h>
  15. #include <Lists.h>
  16. #include <Menus.h>
  17. #include <TextEdit.h>
  18. #include "Globals.h"
  19. #include "Miscellany.h"
  20. #include "AMReminderData.h"
  21.  
  22.  
  23. /* Define additional "private" data structures. */
  24. typedef struct {
  25.         short        data;
  26. } MoreStuff;
  27.  
  28. /*----------*/
  29. void    AddStuff    (YourStuff        *stuff)
  30. {
  31.  
  32. } /* AddStuff */
  33.  
  34. /*----------*/
  35. Boolean  GetStuff    (void)
  36. {
  37.     return (false);
  38. } /* GetStuff */
  39.  
  40. /*----------*/
  41. void    PutStuff    (void)
  42. {
  43. } /* PutStuff */
  44.  
  45. /*----------*/
  46. void    DeleteStuff    (void)
  47. {
  48. } /* DeleteStuff */
  49.  
  50. /*----------*/
  51. void    InitAppData        (void)
  52. {
  53. } /* InitAppData */
  54.  
  55. /*----------*/
  56. void    DisposeAppData    (void)
  57. {
  58. } /* DisposeAppData */
  59.  
  60. /*----------*/
  61. Boolean    OpenAppFile        (FSSpec*    fileSpec,
  62.                          short        *fRefNum)
  63. {
  64.     Boolean            okay;
  65.  
  66.     okay = CheckOS (FSpOpenDF (fileSpec, fsRdWrPerm, fRefNum));
  67.     return (okay);
  68. } /* OpenAppFile */
  69.  
  70. /*----------*/
  71. void    CloseAppFile    (short        fRefNum)
  72. {
  73.     Boolean            okay;
  74.  
  75.     if (fRefNum != 0) {        /* could be 0 if closing new document */
  76.         okay = CheckOS (FSClose (fRefNum));
  77.     }
  78. } /* CloseAppFile */
  79.  
  80. /*----------*/
  81. void    ReadAppFile        (short        fRefNum)
  82. {
  83.  
  84.     InitAppData ();
  85. } /* ReadAppFile */
  86.  
  87. /*----------*/
  88. void    WriteAppFile    (short        fRefNum)
  89. {
  90.  
  91. } /* WriteAppFile */
  92.  
  93. /* AMReminderData */
  94.