home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iddeevt.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  3.4 KB  |  141 lines

  1. #ifndef _IDDEEVT_INL_
  2. #define _IDDEEVT_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: iddeevt.inl                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   classes declared in iddeevt.hpp.                                           *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #ifndef _IDDEEVT_
  19.   #undef  _IDDEEVT_INL_
  20.   #define _IDDEEVT_INL_ 1
  21.   #include <iddeevt.hpp>
  22. #endif
  23.  
  24. #if _IDDEEVT_INL_
  25.   #define inline
  26. #endif
  27.  
  28. inline IString IDDEEvent :: item ( ) const
  29. {
  30.    return strClItem;
  31. }
  32.  
  33. inline IString IDDEEvent :: format ( ) const
  34. {
  35.    return strClFormat;
  36. }
  37.  
  38. inline IDDEEvent& IDDEEvent :: setStatus ( unsigned short status )
  39. {
  40.    usClStatus = status;
  41.    return *this;
  42. }
  43.  
  44. inline unsigned short IDDEEvent :: status ( ) const
  45. {
  46.    return usClStatus;
  47. }
  48.  
  49. inline IDDEEvent& IDDEEvent :: setBuffer ( IString strBuf )
  50. {
  51.    strClData = strBuf;
  52.    return *this;
  53. }
  54.  
  55. inline IDDEEvent& IDDEEvent :: setFormat ( IString strFormat )
  56. {
  57.    strClFormat = strFormat;
  58.    return *this;
  59. }
  60.  
  61. inline IString IDDEEvent :: buffer ( ) const
  62. {
  63.    return strClData;
  64. }
  65.  
  66. inline unsigned short IDDEAcknowledgeEvent :: transactionType ( ) const
  67. {
  68.    return (unsigned short)eventId();
  69. }
  70.  
  71. inline IString IDDEServerAcknowledgeEvent :: data ( ) const
  72. {
  73.    return buffer();
  74. }
  75.  
  76. inline IString IDDEAcknowledgePokeEvent :: pokedData ( ) const
  77. {
  78.    return buffer();
  79. }
  80.  
  81. inline IString IDDEAcknowledgeExecuteEvent :: commands ( ) const
  82. {
  83.    return buffer();
  84. }
  85.  
  86. inline IString IDDEDataEvent :: data ( ) const
  87. {
  88.    return buffer();
  89. }
  90.  
  91. inline IString IDDEPokeEvent :: pokedData ( ) const
  92. {
  93.    return buffer();
  94. }
  95.  
  96. inline IString IDDEExecuteEvent :: commands ( ) const
  97. {
  98.    return buffer();
  99. }
  100.  
  101. inline IDDEEndEvent::Source IDDEEndEvent :: sourceOfEnd ( ) const
  102. {
  103.    return sourceCl;
  104. }
  105.  
  106. inline IString IDDEClientEndEvent :: application ( ) const
  107. {
  108.    return strClApp;
  109. }
  110.  
  111. inline IString IDDEClientEndEvent :: topic ( ) const
  112. {
  113.    return strClTopic;
  114. }
  115.  
  116. inline IString IDDEBeginEvent :: application ( ) const
  117. {
  118.    return strClApp;
  119. }
  120.  
  121. inline IString IDDEBeginEvent :: topic ( ) const
  122. {
  123.    return strClTopic;
  124. }
  125.  
  126. inline IBase::Boolean IDDEBeginEvent :: isCaseSensitive ( ) const
  127. {
  128.    return bClCaseSens;
  129. }
  130.  
  131. inline IDDEBeginEvent& IDDEBeginEvent :: setCaseSensitive ( Boolean caseSensitive )
  132. {
  133.    if (!caseSensitive)
  134.       bClCaseSens = false;
  135.    else
  136.       bClCaseSens = true;
  137.    return *this;
  138. }
  139.  
  140. #endif // _IDDEEVT_INL_
  141.