home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / idsccabs.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  4.7 KB  |  108 lines

  1. /*******************************************************************************
  2. * FILE NAME: idsccabs.hpp                                                      *
  3. *                                                                              *
  4. * DESCRIPTION:                                                                 *
  5. *   Declaration of the class:                                                  *
  6. *     IDSConnectCanvasBase- Base for connect canvas using abstract IDatastoreBase*
  7. * ---------------------------------------------------------------------------- *
  8. * Warning: This file was generated by the VisualAge C++ Visual Builder.        *
  9. * Modifications to this source file will be lost when the part is regenerated. *
  10. *******************************************************************************/
  11. #ifndef _IDSCCABS_
  12. #define _IDSCCABS_  
  13.  
  14. class IDSConnectCanvasBase;
  15.  
  16. #include <imcelcv.hpp>
  17. #include <iobservr.hpp>
  18. #include <ientryfd.hpp>
  19. #include <ivbvprtp.h>
  20. #include <idsmcbs.hpp>
  21. #include <irect.hpp>
  22. #include "idsccabs.h"
  23. #include <ivbdefs.h>
  24. class IVBConnectionList;
  25.  
  26. class IStaticText;
  27. class IPushButton;
  28. class IMessageBox;
  29.  
  30. /*----------------------------------------------------------------------------*/
  31. /* Align classes on four byte boundary.                                       */
  32. /*----------------------------------------------------------------------------*/
  33. #pragma pack(4)
  34.  
  35. //*****************************************************************************
  36. // Class definition for IDSConnectCanvasBase
  37. //*****************************************************************************
  38. class IDSConnectCanvasBase : public IMultiCellCanvas, public IObserver {
  39. public:
  40.    //---------------------------------------------------------------------------
  41.    // Constructors / destructors
  42.    //---------------------------------------------------------------------------
  43.    IDSConnectCanvasBase(
  44.       unsigned long id = WND_IDSConnectCanvasBase,
  45.       IWindow * parent = IWindow::desktopWindow(),
  46.       IWindow * owner = 0,
  47.       const IRectangle & rect = defaultFramingSpec(),
  48.       const IMultiCellCanvas::Style & style = IMultiCellCanvas::defaultStyle());
  49.  
  50.    virtual  ~IDSConnectCanvasBase();
  51.  
  52.    //---------------------------------------------------------------------------
  53.    // public member functions
  54.    //---------------------------------------------------------------------------
  55.    static IRectangle defaultFramingSpec();
  56.    virtual IDSConnectCanvasBase & initializePart();
  57.    IDSConnectCanvasBase * getMultiCellCanvas() { return this; };
  58.    IVBVariablePartPointer<IDatastoreBase *> *  getDatastoreBase() const { return iDatastoreBase; };
  59.    IEntryField *  getuserName() const { return iuserName; };
  60.    IEntryField *  getauthentication() const { return iauthentication; };
  61.  
  62.    //---------------------------------------------------------------------------
  63.    // public member data
  64.    //---------------------------------------------------------------------------
  65.    static const INotificationId IVB_IMPORT readyId;
  66.    static const INotificationId IVB_IMPORT datastoreBase;
  67.    static const INotificationId IVB_IMPORT userNameText;
  68.    static const INotificationId IVB_IMPORT authenticationText;
  69.    static const INotificationId IVB_IMPORT datastoreBaseConnected;
  70.    static const INotificationId IVB_IMPORT datastoreBaseDisconnected;
  71.    static const INotificationId IVB_IMPORT datastoreBaseTransacted;
  72.    static const INotificationId IVB_IMPORT datastoreBaseIsConnected;
  73.  
  74. protected:
  75.    //---------------------------------------------------------------------------
  76.    // protected member functions
  77.    //---------------------------------------------------------------------------
  78.    void makeConnections();
  79.    virtual IObserver & dispatchNotificationEvent(const INotificationEvent & anEvent);
  80.  
  81. private:
  82.    //---------------------------------------------------------------------------
  83.    // private member data
  84.    //---------------------------------------------------------------------------
  85.    IStaticText * idatastoreName;
  86.    IEntryField * iuserName;
  87.    IEntryField * iauthentication;
  88.    IPushButton * iPushButton1;
  89.    IPushButton * iPushButton3;
  90.    IPushButton * iPushButton4;
  91.    IPushButton * iPushButton2;
  92.    IStaticText * iStaticText2;
  93.    IStaticText * iStaticText3;
  94.    IVBVariablePartPointer<IDatastoreBase *> * iDatastoreBase;
  95.    IMessageBox * iMessageBox1;
  96.    IVBConnectionList * iIDSConnectCanvasBaseConnectionList;
  97.  
  98.  
  99. };   //IDSConnectCanvasBase
  100.  
  101.  
  102. /*----------------------------------------------------------------------------*/
  103. /* Resume compiler default packing.                                           */
  104. /*----------------------------------------------------------------------------*/
  105. #pragma pack()
  106.  
  107. #endif
  108.