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

  1. /*******************************************************************************
  2. * FILE NAME: idsconcv.hpp                                                      *
  3. *                                                                              *
  4. * DESCRIPTION:                                                                 *
  5. *   Declaration of the class:                                                  *
  6. *     IDSConnectCanvas- Connect Panel for IDatastore                           *
  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 _IDSCONCV_
  12. #define _IDSCONCV_  
  13.  
  14. class IDSConnectCanvas;
  15.  
  16. #include <icanvas.hpp>
  17. #include <iobservr.hpp>
  18. #include <idsmcon.hpp>
  19. #include <irect.hpp>
  20. #include "idsconcv.h"
  21. #include <ivbdefs.h>
  22. class IVBConnectionList;
  23.  
  24. class IPushButton;
  25. class IEntryField;
  26. class IStaticText;
  27. class ICheckBox;
  28. class IMessageBox;
  29.  
  30. /*----------------------------------------------------------------------------*/
  31. /* Align classes on four byte boundary.                                       */
  32. /*----------------------------------------------------------------------------*/
  33. #pragma pack(4)
  34.  
  35. //*****************************************************************************
  36. // Class definition for IDSConnectCanvas
  37. //*****************************************************************************
  38. class IDSConnectCanvas : public ICanvas, public IObserver {
  39. public:
  40.    //---------------------------------------------------------------------------
  41.    // Constructors / destructors
  42.    //---------------------------------------------------------------------------
  43.    IDSConnectCanvas(
  44.       unsigned long id = WND_IDSConnectCanvas,
  45.       IWindow * parent = IWindow::desktopWindow(),
  46.       IWindow * owner = 0,
  47.       const IRectangle & rect = defaultFramingSpec(),
  48.       const ICanvas::Style & style = ICanvas::defaultStyle());
  49.  
  50.    virtual  ~IDSConnectCanvas();
  51.  
  52.    //---------------------------------------------------------------------------
  53.    // public member functions
  54.    //---------------------------------------------------------------------------
  55.    static IRectangle defaultFramingSpec();
  56.    virtual IDSConnectCanvas & initializePart();
  57.    IDSConnectCanvas * getCanvas() { return this; };
  58.    IDatastore *  getDatastore() const { return iDatastore; };
  59.  
  60.    //---------------------------------------------------------------------------
  61.    // public member data
  62.    //---------------------------------------------------------------------------
  63.    static const INotificationId IVB_IMPORT readyId;
  64.    static const INotificationId IVB_IMPORT datastoreAuthentication;
  65.    static const INotificationId IVB_IMPORT datastoreDatastoreName;
  66.    static const INotificationId IVB_IMPORT datastoreIsConnected;
  67.    static const INotificationId IVB_IMPORT datastoreShareModeExclusive;
  68.    static const INotificationId IVB_IMPORT datastoreConnected;
  69.    static const INotificationId IVB_IMPORT datastoreDisconnected;
  70.    static const INotificationId IVB_IMPORT datastoreTransacted;
  71.    static const INotificationId IVB_IMPORT datastoreUserName;
  72.    static const INotificationId IVB_IMPORT datastore;
  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.    IPushButton * iPushButton1;
  86.    IPushButton * iPushButton2;
  87.    IPushButton * iPushButton3;
  88.    IPushButton * iPushButton4;
  89.    IEntryField * iEntryField1;
  90.    IEntryField * iEntryField2;
  91.    IEntryField * iEntryField3;
  92.    IStaticText * iStaticText1;
  93.    IStaticText * iStaticText2;
  94.    IStaticText * iStaticText3;
  95.    ICheckBox * iCheckBox1;
  96.    IMessageBox * iDatastoreMessages;
  97.    IDatastore * iDatastore;
  98.    IVBConnectionList * iIDSConnectCanvasConnectionList;
  99.  
  100.  
  101. };   //IDSConnectCanvas
  102.  
  103.  
  104. /*----------------------------------------------------------------------------*/
  105. /* Resume compiler default packing.                                           */
  106. /*----------------------------------------------------------------------------*/
  107. #pragma pack()
  108.  
  109. #endif
  110.