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

  1. // Copyright © 1992 Peter Speck, speck@dat.ruc.dk. All rights reserved.
  2. // UArticleCmds.h
  3.  
  4. #define __UARTICLECMDS__
  5.  
  6. #ifndef __UARTICLESTATUS__
  7. #include "UArticleStatus.h"
  8. #endif
  9.  
  10. class TArticleView;
  11. class TArticleListView;
  12. //---------------------------------------------------------------------
  13.  
  14. class TShowDiscJunkCommand : public TCommand
  15. {
  16.     public:
  17.         pascal void DoIt();
  18.  
  19.         TShowDiscJunkCommand();
  20.         pascal void Initialize();
  21.         void IShowDiscJunkCommand(TArticleListView *articleListView, long index);
  22.         pascal void Free();
  23.     private:
  24.         TArticleListView *fArticleListView; 
  25.         long fIndex;
  26. };
  27. //---------------------------------------------------------------------
  28.  
  29.  
  30. class TCopyArticleTextCommand : public TCommand
  31. {
  32.     public:
  33.         pascal void DoIt();
  34.         
  35.         TCopyArticleTextCommand();
  36.         pascal void ICopyArticleTextCommand(TArticleListView *articleListView, Boolean asQuote, Boolean addHeader);
  37.     private:
  38.         TArticleListView *fArticleListView;
  39.         Boolean fAsQuote;
  40.         Boolean fAddHeader;
  41. };
  42. //---------------------------------------------------------------------
  43.  
  44.  
  45. class TUpdateArticleViewCommand : public TCommand
  46. {
  47.     public:
  48.         pascal void DoIt();
  49.         
  50.         TUpdateArticleViewCommand();
  51.         pascal void Initialize();
  52.         void IUpdateArticleViewCommand(TArticleListView *alv, ArticleShowType whatToShow);
  53.         pascal void Free();
  54.     private:
  55.         TArticleListView *fArticleListView;
  56.         ArticleShowType fWhatToShow;
  57. };
  58.  
  59. //---------------------------------------------------------------------
  60.  
  61. class TStoreNotesCommand : public TCommand
  62. {
  63.     public:
  64.         pascal void DoIt();
  65.         
  66.         TStoreNotesCommand();
  67.         pascal void Initialize();
  68.         void IStoreNotesCommand(TArticleListView *alv);
  69.         pascal void Free();
  70.  
  71.     private:
  72.         TArticleListView *fArticleListView;
  73.         TFile *fFile;
  74.         ParamBlockRec *fPBP;
  75.         
  76.         void OpenFile();
  77.         void StoreQuote();
  78. };
  79.