home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / lancelot / linfonb.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  5.0 KB  |  139 lines

  1. /******************************************************************************
  2. * .FILE:         linfonb.hpp                                                  *
  3. *                                                                             *
  4. * .DESCRIPTION:  Lancelot Sample Program:              Class Definition       *
  5. *                                                                             *
  6. * .CLASSES:      LInfoNotebook                                                *
  7. *                                                                             *
  8. * .COPYRIGHT:                                                                 *
  9. *    Licensed Material - Program-Property of IBM                              *
  10. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  11. *                                                                             *
  12. * .DISCLAIMER:                                                                *
  13. *   The following [enclosed] code is sample code created by IBM               *
  14. *   Corporation.  This sample code is not part of any standard IBM product    *
  15. *   and is provided to you solely for the purpose of assisting you in the     *
  16. *   development of your applications.  The code is provided 'AS IS',          *
  17. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  18. *   arising out of your use of the sample code, even if they have been        *
  19. *   advised of the possibility of such damages.                               *
  20. *                                                                             *
  21. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  22. *                                                                             *
  23. ******************************************************************************/
  24. #ifndef _LINFONB_
  25.   #define _LINFONB_
  26.  
  27. #include <iwindow.hpp>
  28. #include <inotebk.hpp>
  29. #include <icmdhdr.hpp>
  30. #include <ipagehdr.hpp>
  31. #include <ihelp.hpp>
  32. #include <ihelphdr.hpp>
  33. #include "lpagectl.hpp"
  34. #include "lacct.hpp"
  35. #include "lbadge.hpp"
  36. #include "lskill.hpp"
  37. #include "lgenl.hpp"
  38. #include "lstatus.hpp"
  39. #include "lproject.hpp"
  40. #include "ltask.hpp"
  41. #include "ltimec.hpp"
  42. #include "ldbqry.hpp"
  43.  
  44. class LMainCnr;
  45.  
  46. /******************************************************************************
  47. * Class LInfoNotebook - Information notebook for a person or query            *
  48. ******************************************************************************/
  49. class LInfoNotebook : public INotebook,
  50.                       protected ICommandHandler,
  51.                       protected IPageHandler
  52. {
  53.    public:
  54. /*------------------------ Constructors/Destructor ----------------------------
  55. | Construct the object in one of two ways:                                    |
  56. | 1) Parent, owner, employee, and query flag.                                 |
  57. | 2) Parent, owner, container, and query flag.          .                     |
  58. -----------------------------------------------------------------------------*/
  59.       LInfoNotebook( IWindow* parent,
  60.                      IWindow* owner,
  61.                      LEmployeeData& employee,
  62.                      Boolean isQuery = true );
  63.  
  64.       LInfoNotebook( IWindow* parent,
  65.                      IWindow* owner,
  66.                      LMainCnr* cnr = NULL,
  67.                      const IString queryName = NULL );
  68.  
  69.      ~LInfoNotebook();
  70.  
  71. /*------------------------ Database Functions ---------------------------------
  72. | These functions are used to save data to the database:                      |
  73. |   verifyPages         - Verify all notebook page data and save to database. |
  74. -----------------------------------------------------------------------------*/
  75.       Boolean
  76.          verifyPages( IString queryName );
  77.  
  78.    protected:
  79. /*----------------------------- Event Processing ------------------------------
  80. | Handle and process events:                                                  |
  81. |   command             - Process command events.                             |
  82. |   select              - Process select events.                              |
  83. -----------------------------------------------------------------------------*/
  84.       Boolean
  85.          command( ICommandEvent& event ),
  86.          select (IPageSelectEvent& pageevt);
  87.  
  88.    private:
  89.  
  90.       LQueryData
  91.          queryData;
  92.  
  93.       GeneralPage
  94.          generalPage;
  95.  
  96.       AccountPage
  97.          accountPage;
  98.  
  99.       BadgePage
  100.          badgePage;
  101.  
  102.       SkillPage
  103.          skillPage;
  104.  
  105.       StatusPage
  106.          statusPage;
  107.  
  108.       ProjectPage
  109.         *pProjectPage;
  110.  
  111.       TasksPage
  112.         *pTasksPage;
  113.  
  114.       TimeCardPage
  115.         *pTimeCardPage;
  116.  
  117.       QueryGenl
  118.         *pQueryGenl;
  119.  
  120.       QueryAcct
  121.         *pQueryAcct;
  122.  
  123.       QuerySkill
  124.         *pQuerySkill;
  125.  
  126.       QueryBadge
  127.         *pQueryBadge;
  128.  
  129.       QueryStatus
  130.         *pQueryStatus;
  131.  
  132.       IPageHandle
  133.          phTimeCardPage;
  134.  
  135.       LMainCnr
  136.         *pCnr;
  137. };
  138. #endif
  139.