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

  1. /*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  2.  
  3.   msgcli.h
  4.   Created: 06/27/96
  5.   Copyright (c) 1996, Borland International
  6.   $Revision:   1.0  $
  7.  
  8.   MessageClientTest
  9.    
  10. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/  
  11. #ifndef __MSGCLI_H
  12. #define __MSGCLI_H
  13.  
  14. #include <ideaddon\comhelp.h>
  15. #include <ideaddon\imsgsys.h>
  16.  
  17. #include "tests.h"
  18.  
  19.  
  20. class MessageClientTest :  public TestObject, 
  21.                   public IUnknownImp< IMessageClient > {
  22.  public:                  
  23.   MessageClientTest();
  24.   
  25.   //........  IMessageClient methods ........ 
  26.   virtual BOOL CanHandleMessage( 
  27.       IPolyString * handlerType, 
  28.       IPolyString * action );
  29.   
  30.   virtual void HandleMessage( 
  31.       IPolyString * action,
  32.       int column,
  33.       int line,
  34.       IPolyString * filePath );
  35.   
  36.  
  37.  
  38.   //........ TestObject Methods .......
  39.   virtual BOOL Init();
  40.   virtual void UnInit();  
  41.   virtual const char * GetName();
  42.   virtual const char * GetTestDescription( int testNum );
  43.   virtual void DoTest( int testNum );
  44.   
  45.  protected: 
  46.   void warnIfTooLate();
  47.   bool _tooLateToStartHandling;
  48.   bool _showHandlingEnabled;  
  49.   bool _viewHandlingEnabled;
  50.   bool _editHandlingEnabled;
  51. };
  52.  
  53. #endif    // __MSGCLI_H
  54.