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

  1. // Copyright © 1992 Peter Speck, speck@dat.ruc.dk. All rights reserved.
  2. // UGroupDocCmds.h
  3.  
  4. #define __UGROUPDOCCMDS__
  5.  
  6. class TGroupDoc;
  7. class PNntp;
  8.  
  9. void GoPublicFile(const CStr255 &groupDotName, FSSpec &spec);
  10.  
  11. class TOpenGroupCommand : public TCommand
  12. {
  13.     public:
  14.         pascal void DoIt();
  15.  
  16.         TOpenGroupCommand();
  17.         pascal void Initialize();
  18.         void IOpenGroupCommand(const CStr255 &name, 
  19.             Boolean updateDatabase, Boolean updateOnly, Boolean saveIfNonexisting);
  20.         pascal void Free();
  21.  
  22.     private:
  23.         CStr255 fGroupDotName;
  24.         Boolean fUpdateDatabase;
  25.         Boolean fUpdateOnly;
  26.         Boolean fSaveIfNonexisting;
  27.         Boolean fGotDBFile, fGotStatFile;
  28.         TGroupDoc *fDoc;
  29.         PNntp *fNntp;
  30.         long fFirstID, fLastID, fFirstNewID;
  31.  
  32.         void OpenDocument();
  33.         void ShowDiscListWindow();
  34.  
  35.         void UpdateDiscussions(); // fetches new headers from host
  36.         Boolean StartUpdate(); // true if anything new
  37.         void UpdateHeaderLists();
  38.  
  39.         void CreateNewDiscussion(long id);
  40.         void DistributeArticle(long id);
  41.         void DistributeNewArticles();
  42. };
  43.