home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / LANCELOT / LINFONB.HPP < prev    next >
C/C++ Source or Header  |  1995-05-01  |  5KB  |  132 lines

  1. /******************************************************************************
  2. * FILE NAME: linfonb.hpp                                                      *
  3. *                                                                             *
  4. * DESCRIPTION: Notebook with information pages for an employee or query       *
  5. *                                                                             *
  6. * Classes:                                                                    *
  7. *   LInfoNotebook                                                             *
  8. *                                                                             *
  9. * COPYRIGHT:                                                                  *
  10. *   Licensed Materials - Property of IBM                                      *
  11. *   (C) Copyright IBM Corporation 1992, 1995                                  *
  12. *   All Rights Reserved                                                       *
  13. *   US Government Users Restricted Rights - Use, duplication, or disclosure   *
  14. *   restricted by GSA ADP Schedule Contract with IBM Corp.                    *
  15. *                                                                             *
  16. ******************************************************************************/
  17. #ifndef _LINFONB_
  18.   #define _LINFONB_
  19.  
  20. #include <iwindow.hpp>
  21. #include <inotebk.hpp>
  22. #include <icmdhdr.hpp>
  23. #include <ipagehdr.hpp>
  24. #include <ihelp.hpp>
  25. #include <ihelphdr.hpp>
  26. #include "lpagectl.hpp"
  27. #include "lacct.hpp"
  28. #include "lbadge.hpp"
  29. #include "lskill.hpp"
  30. #include "lgenl.hpp"
  31. #include "lstatus.hpp"
  32. #include "lproject.hpp"
  33. #include "ltask.hpp"
  34. #include "ltimec.hpp"
  35. #include "ldbqry.hpp"
  36.  
  37. class LMainCnr;
  38.  
  39. /******************************************************************************
  40. * Class LInfoNotebook - Information notebook for a person or query            *
  41. ******************************************************************************/
  42. class LInfoNotebook : public INotebook,
  43.                       protected ICommandHandler,
  44.                       protected IPageHandler
  45. {
  46.    public:
  47. /*------------------------ Constructors/Destructor ----------------------------
  48. | Construct the object in one of two ways:                                    |
  49. | 1) Parent, owner, employee, and query flag.                                 |
  50. | 2) Parent, owner, container, and query flag.          .                     |
  51. -----------------------------------------------------------------------------*/
  52.       LInfoNotebook( IWindow* parent,
  53.                      IWindow* owner,
  54.                      LEmployeeData& employee,
  55.                      Boolean isQuery = true );
  56.  
  57.       LInfoNotebook( IWindow* parent,
  58.                      IWindow* owner,
  59.                      LMainCnr* cnr = NULL,
  60.                      const IString queryName = NULL );
  61.  
  62.      ~LInfoNotebook();
  63.  
  64. /*------------------------ Database Functions ---------------------------------
  65. | These functions are used to save data to the database:                      |
  66. |   verifyPages         - Verify all notebook page data and save to database. |
  67. -----------------------------------------------------------------------------*/
  68.       Boolean
  69.          verifyPages( IString queryName );
  70.  
  71.    protected:
  72. /*----------------------------- Event Processing ------------------------------
  73. | Handle and process events:                                                  |
  74. |   command             - Process command events.                             |
  75. |   select              - Process select events.                              |
  76. -----------------------------------------------------------------------------*/
  77.       Boolean
  78.          command( ICommandEvent& event ),
  79.          select (IPageSelectEvent& pageevt);
  80.  
  81.    private:
  82.  
  83.       LQueryData
  84.          queryData;
  85.  
  86.       GeneralPage
  87.          generalPage;
  88.  
  89.       AccountPage
  90.          accountPage;
  91.  
  92.       BadgePage
  93.          badgePage;
  94.  
  95.       SkillPage
  96.          skillPage;
  97.  
  98.       StatusPage
  99.          statusPage;
  100.  
  101.       ProjectPage
  102.         *pProjectPage;
  103.  
  104.       TasksPage
  105.         *pTasksPage;
  106.  
  107.       TimeCardPage
  108.         *pTimeCardPage;
  109.  
  110.       QueryGenl
  111.         *pQueryGenl;
  112.  
  113.       QueryAcct
  114.         *pQueryAcct;
  115.  
  116.       QuerySkill
  117.         *pQuerySkill;
  118.  
  119.       QueryBadge
  120.         *pQueryBadge;
  121.  
  122.       QueryStatus
  123.         *pQueryStatus;
  124.  
  125.       IPageHandle
  126.          phTimeCardPage;
  127.  
  128.       LMainCnr
  129.         *pCnr;
  130. };
  131. #endif
  132.