home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osr1.exe / src / DraftRec.h < prev    next >
C/C++ Source or Header  |  1997-03-21  |  3KB  |  99 lines

  1. /* @(#)Z 1.4 com/src/docshell/DraftRec.h, odshell, od96os2, odos29712d 97/03/21 17:38:33 (96/10/29 09:23:53) */
  2. /*====START_GENERATED_PROLOG======================================
  3.  */
  4. /*
  5.  *   COMPONENT_NAME: odshell
  6.  *
  7.  *   CLASSES:   DraftInfoRec
  8.  *
  9.  *   ORIGINS: 27
  10.  *
  11.  *
  12.  *   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13.  *   All Rights Reserved
  14.  *   Licensed Materials - Property of IBM
  15.  *   US Government Users Restricted Rights - Use, duplication or
  16.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17.  *       
  18.  *   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19.  *   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20.  *   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21.  *   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22.  *   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23.  *   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24.  *   OR PERFORMANCE OF THIS SOFTWARE.
  25.  */
  26. /*====END_GENERATED_PROLOG========================================
  27.  */
  28.  
  29. #ifndef _DRAFTREC_
  30. #define _DRAFTREC_
  31.  
  32. #ifndef _PLFMDEF_
  33. #include "PlfmDef.h"
  34. #endif
  35.  
  36. #ifndef SOM_ODDraft_xh
  37. #include <Draft.xh>
  38. #endif
  39.  
  40. //==============================================================================
  41. // Constants
  42. //==============================================================================
  43.  
  44. //==============================================================================
  45. // Scalar Types
  46. //==============================================================================
  47.  
  48. //==============================================================================
  49. // Classes defined in this interface
  50. //==============================================================================
  51.  
  52. class DraftInfoRec;
  53.  
  54. //==============================================================================
  55. // Classes used by this interface
  56. //==============================================================================
  57.  
  58. class DraftInfoRec 
  59. {
  60. public:
  61.     DraftInfoRec();
  62.     ODVMethod    ~DraftInfoRec();
  63.     ODNVMethod    void InitDraftInfoRec(Environment *ev, ODDraft *draft);
  64.  
  65.  
  66.     ODMethod    DraftInfoRec*    GetPrev()     { return fPrev; }
  67.     ODMethod    void        SetPrev(DraftInfoRec *prev)
  68.                             {fPrev = prev; }
  69.     ODMethod    DraftInfoRec*    GetNext()     { return fNext; }
  70.     ODMethod    void        SetNext(DraftInfoRec *next)
  71.                             {fNext = next; }
  72.     ODMethod    ODDraft*    GetDraft()    { return fDraft; }
  73.     ODMethod    void        SetDraft(ODDraft *draft)
  74.                             {fDraft = draft; }
  75.     ODMethod    ODDraftID    GetDraftID()    { return fDraftID; }
  76.     ODMethod    ODULong        GetDraftNum()    { return fDraftNumber; }
  77.     ODMethod    ODULong        GetSavedDate()    { return fSavedDate; }
  78.     ODMethod    ODIText*    GetModUser()    { return fModUser; }
  79.     ODMethod    void        SetModUser(ODIText *modUser)
  80.                             { fModUser = modUser; }
  81.     ODMethod    ODIText*    GetComment()    { return fComment; }
  82.     ODMethod    void        SetComment(ODIText *comment)    
  83.                             { fComment = comment; }
  84.  
  85. protected:
  86.  
  87. private:
  88.     DraftInfoRec*        fPrev;
  89.     DraftInfoRec*        fNext;
  90.     ODDraft*        fDraft;
  91.     ODDraftID        fDraftID;
  92.     ODULong            fDraftNumber;
  93.     ODULong            fSavedDate;
  94.     ODIText*        fModUser;
  95.     ODIText*        fComment;
  96. };
  97.  
  98. #endif    // _DRAFTREC_
  99.