home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / ADDON.PAK / PROJECT3.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.7 KB  |  61 lines

  1. #ifndef __PROJECT3_H_
  2. #define __PROJECT3_H_
  3.  
  4. #include <ideaddon\iproj.h>
  5.  
  6. #include "tests.h"
  7.  
  8.  
  9. /*-----------------------------------------------------------------------*/
  10.  
  11. class MyProjClient : public IUnknownImp< IProjectClient > 
  12. {
  13.     public:
  14.         MyProjClient() : IUNKNOWNIMPL_INIT( IProjectClient )
  15.         {} 
  16.  
  17.         //IProjectClient implementation
  18.         virtual void OpenNotify(IPolyString* projectName) {}
  19.         virtual void CloseNotify() {}
  20.         virtual void NodeDeleteNotify(ProjectNode node) {}
  21.         virtual void NodeAddNotify(ProjectNode node) {}
  22.         virtual void NodeMoveNotify(ProjectNode node, ProjectNode oldParent) {}
  23.         virtual void NodeChangeNotify(ProjectNode node) {}
  24.         virtual void NodeCopyNotify(ProjectNode newNode, 
  25.                                     ProjectNode newParent, BOOL reference) {}
  26.         virtual BOOL HandleAddNodeUI() { return FALSE; }
  27.         
  28.         virtual void DependencyQueryResponder(ProjectNode node, 
  29.                                               IPolyString* outputName);
  30.         
  31.     protected:
  32. };
  33.  
  34. /*-----------------------------------------------------------------------*/
  35.  
  36. class ProjectTestC : public TestObject
  37. {
  38.     public:
  39.        ProjectTestC();
  40.        ~ProjectTestC();
  41.  
  42.        //TestObject Interface implementation
  43.        virtual BOOL Init();
  44.        virtual void UnInit();
  45.        virtual const char* GetName();
  46.        virtual const char* GetTestDescription(int testNum);
  47.        virtual void DoTest(int testNum);
  48.  
  49.     protected:   
  50.        void ShowDeps();
  51.     
  52.        IProjectServer3* prjServer;
  53.        MyProjClient* prjClient;
  54. };
  55.  
  56.  
  57. /*-----------------------------------------------------------------------*/
  58.  
  59.  
  60. #endif // __PROJECT3_H_
  61.