home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / UPrefsFileMgr.h < prev    next >
Encoding:
Text File  |  1994-02-20  |  704 b   |  33 lines  |  [TEXT/MPS ]

  1. // Copyright © 1994 Peter Speck (speck@dat.ruc.dk).  All rights reserved.
  2. // UPrefsFileMgr.h
  3.  
  4. #ifndef __UPREFSDATABASE__
  5. #include "UPrefsDatabase.h"
  6. #endif
  7.  
  8. class PPrefsFileMgr : public PPrefsDatabase
  9. {
  10.     public:
  11.     
  12.         void Load();
  13.         void Save();
  14.         
  15.         void SetPrefsValidationState(Boolean valid);
  16.         TFile *GetFile();
  17.         
  18.         PPrefsFileMgr();
  19.         void IPrefsFileMgr(FSSpec spec);
  20.         virtual ~PPrefsFileMgr();
  21.     private:
  22.         TFile *fPrefsFile;
  23.         TFile *fTmpFile;
  24.         Boolean fPrefsIsValid;
  25.         
  26.         void SpecifyTmpFile();
  27. };
  28. extern PPrefsFileMgr *gPrefsFileMgr;
  29.  
  30. void GetPrefsDocLocation(FSSpec &spec);
  31. void GoPrefsLocation(TFile *file, short stringID);
  32. void GetPrefsLocationFileUntitledName(CStr255 &name, short stringID);
  33.