home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-08-09 | 1.4 KB | 33 lines | [TEXT/KAHL] |
- //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- // //
- // //
- // Copyright PennyWise Software, 1994. //
- // //
- // Part of the PennyWise Software Application Framework //
- // //
- // //
- // PrefMgr.h Written by Peter Kaplan //
- // //
- // //
- //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- #ifndef _PREFS_MANAGER_
- #define _PREFS_MANAGER_
-
- typedef void (*NewRoutine) (short);
-
- // Useful outside of PrefsMgr as well
- extern long GetOrMakeDir( short theVolume, long parID, char *theName);
-
- extern short OpenPrefsFile(char *dirName, char *fileName, NewRoutine newProc, OSType theCreator);
- extern void ClosePrefsFile(void);
- extern Handle GetPrefsResource(ResType theType, short theID);
- extern Handle GetPrefsNamedResource(ResType theType, char * theName);
- extern Handle GetPrefsIndResource (ResType theType,short theIndex);
- extern void GetPrefsIndType (ResType *theType,short theIndex);
- extern short CountPrefsTypes (void);
- extern short CountPrefsResources (ResType theType);
- extern void AddPrefsResource ( Handle theHandle,ResType theType,short theID,char * theName);
- extern void RmvePrefsResource ( Handle theHandle);
- extern short UniquePrefsID (ResType theType);
-
- #endif