home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Frameworks / PennyWise™ Framework / PennyWise Includes / PWPrefsMgr.h < prev    next >
Encoding:
Text File  |  1994-08-09  |  1.4 KB  |  33 lines  |  [TEXT/KAHL]

  1. //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  2. //                                                                                //
  3. //                                                                                //
  4. //                    Copyright PennyWise Software, 1994.                            //
  5. //                                                                                //
  6. //            Part of the PennyWise Software Application Framework                //
  7. //                                                                                //
  8. //                                                                                //
  9. //            PrefMgr.h                Written by Peter Kaplan                        //
  10. //                                                                                //
  11. //                                                                                //
  12. //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  13. #ifndef _PREFS_MANAGER_
  14. #define _PREFS_MANAGER_
  15.  
  16.     typedef void (*NewRoutine) (short);
  17.     
  18.     // Useful outside of PrefsMgr as well
  19.     extern    long     GetOrMakeDir( short theVolume, long parID, char *theName);
  20.     
  21.     extern    short     OpenPrefsFile(char *dirName, char *fileName, NewRoutine newProc, OSType theCreator);
  22.     extern    void    ClosePrefsFile(void);
  23.     extern    Handle     GetPrefsResource(ResType theType, short    theID);
  24.     extern    Handle     GetPrefsNamedResource(ResType theType, char * theName);
  25.     extern    Handle     GetPrefsIndResource (ResType theType,short  theIndex);
  26.     extern    void     GetPrefsIndType (ResType *theType,short  theIndex);
  27.     extern    short     CountPrefsTypes (void);
  28.     extern    short     CountPrefsResources (ResType theType);
  29.     extern    void     AddPrefsResource ( Handle theHandle,ResType theType,short theID,char * theName);
  30.     extern    void     RmvePrefsResource ( Handle theHandle);
  31.     extern    short     UniquePrefsID (ResType theType);
  32.  
  33. #endif