home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / OpenDoc / CreditNow! / CreditNow! Source / $Sources / CPCreditNowDemo.Ext.cpp < prev    next >
Encoding:
Text File  |  1995-04-14  |  1.6 KB  |  47 lines  |  [TEXT/MPCC]

  1. //----------------------------------------------------------------------------------------
  2. // Extensions protocol
  3. //----------------------------------------------------------------------------------------
  4.  
  5. #ifndef _CREDITNOWDEMO_
  6. #include "CPCreditNowDemo.h"
  7. #endif
  8.  
  9. //----------------------------------------------------------------------------------------
  10.  
  11. ODBoolean CPCreditNowDemo::HasExtension(Environment* ev, ODType extensionName)
  12. {
  13.     // CodeWarrior: Cmd-Click or Search:Find Definition • Explain_HasExtension
  14.     EnteringMethod("\pCPCreditNowDemo::HasExtension");
  15.     ODUnused(extensionName);
  16.  
  17.     return kODFalse;
  18.         // No extension until you implement one for your part.
  19. }
  20.  
  21. //----------------------------------------------------------------------------------------
  22.  
  23. ODExtension* CPCreditNowDemo::GetExtension(Environment* ev, ODType extensionName)
  24. {
  25.     // CodeWarrior: Cmd-Click or Search:Find Definition • Explain_GetExtension
  26.     EnteringMethod("\pCPCreditNowDemo::GetExtension");
  27.     ODUnused(extensionName);
  28.  
  29.     DebugStr("\pUntil the part implements extension support, this should not get called.");
  30.  
  31.     ev->_major = kODErrUnsupportedExtension;
  32.         // If we are called with an extension type we don't support,
  33.         // we should be returning an error here.
  34.  
  35.     return kODNULL;
  36. }
  37.  
  38. //----------------------------------------------------------------------------------------
  39.  
  40. void CPCreditNowDemo::ReleaseExtension(Environment* ev, ODExtension* extension)
  41. {
  42.     // CodeWarrior: Cmd-Click or Search:Find Definition • Explain_ReleaseExtension
  43.     EnteringMethod("\pCPCreditNowDemo::ReleaseExtension");
  44.     ODUnused(extension);
  45. }
  46.  
  47.