home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / IBMCLASS / IDDEEVT.INL < prev    next >
Text File  |  1993-10-22  |  11KB  |  245 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. *   class(es) declared in iddeevt.hpp.                                         *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   Licensed Materials - Property of IBM                                       *
  12. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  13. *   All Rights Reserved                                                        *
  14. *   US Government Users Restricted Rights - Use, duplication, or               *
  15. *   disclosure                                                                 *
  16. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  17. *                                                                              *
  18. *******************************************************************************/
  19. #ifndef _IDDEEVT_
  20.   #undef  _IDDEEVT_INL_
  21.   #define _IDDEEVT_INL_ 1
  22.   #include <iddeevt.hpp>
  23. #endif
  24.  
  25. #if _IDDEEVT_INL_
  26.   #define inline
  27. #endif
  28.  
  29. inline IString IDDEEvent :: item ( ) const
  30. /*------------------------------------------------------------------------------
  31. | IDDEEvent::item                                                              |
  32. ------------------------------------------------------------------------------*/
  33. {
  34.    return strClItem;
  35. }
  36.  
  37. inline IString IDDEEvent :: format ( ) const
  38. /*------------------------------------------------------------------------------
  39. | IDDEEvent::format                                                            |
  40. ------------------------------------------------------------------------------*/
  41. {
  42.    return strClFormat;
  43. }
  44.  
  45. inline IDDEEvent& IDDEEvent :: setStatus ( unsigned short status )
  46. /*------------------------------------------------------------------------------
  47. | IDDEEvent::setStatus                                                         |
  48. ------------------------------------------------------------------------------*/
  49. {
  50.    usClStatus = status;
  51.    return *this;
  52. }
  53.  
  54. inline unsigned short IDDEEvent :: status ( ) const
  55. /*------------------------------------------------------------------------------
  56. | IDDEEvent::status                                                            |
  57. ------------------------------------------------------------------------------*/
  58. {
  59.    return usClStatus;
  60. }
  61.  
  62. inline IDDEEvent& IDDEEvent :: setBuffer ( IString strBuf )
  63. /*------------------------------------------------------------------------------
  64. | IDDEEvent::setBuffer                                                         |
  65. ------------------------------------------------------------------------------*/
  66. {
  67.    strClData = strBuf;
  68.    return *this;
  69. }
  70.  
  71. inline IDDEEvent& IDDEEvent :: setFormat ( IString strFormat )
  72. /*------------------------------------------------------------------------------
  73. | IDDEEvent::setFormat                                                         |
  74. ------------------------------------------------------------------------------*/
  75. {
  76.    strClFormat = strFormat;
  77.    return *this;
  78. }
  79.  
  80. inline IString IDDEEvent :: buffer ( ) const
  81. /*------------------------------------------------------------------------------
  82. | IDDEEvent::buffer                                                            |
  83. ------------------------------------------------------------------------------*/
  84. {
  85.    return strClData;
  86. }
  87.  
  88. /***************************************************************/
  89. /*  IDDEAcknowledgeEvent Public Member Functions               */
  90. /***************************************************************/
  91.  
  92. inline unsigned short IDDEAcknowledgeEvent :: transactionType ( ) const
  93. /*------------------------------------------------------------------------------
  94. | IDDEAcknowledgeEvent::transactionType                                        |
  95. ------------------------------------------------------------------------------*/
  96. {
  97.    return (unsigned short)eventId();
  98. }
  99.  
  100. /***************************************************************/
  101. /*  IDDEServerAcknowledgeEvent Public Member Functions         */
  102. /***************************************************************/
  103.  
  104. inline IString IDDEServerAcknowledgeEvent :: data ( ) const
  105. /*------------------------------------------------------------------------------
  106. | IDDEServerAcknowledgeEvent::data                                             |
  107. ------------------------------------------------------------------------------*/
  108. {
  109.    return buffer();
  110. }
  111.  
  112. /***************************************************************/
  113. /*  IDDEAcknowledgePokeEvent Public Member Functions           */
  114. /***************************************************************/
  115.  
  116. inline IString IDDEAcknowledgePokeEvent :: pokedData ( ) const
  117. /*------------------------------------------------------------------------------
  118. | IDDEAcknowledgePokeEvent::pokedData                                          |
  119. ------------------------------------------------------------------------------*/
  120. {
  121.    return buffer();
  122. }
  123.  
  124. /***************************************************************/
  125. /*  IDDEAcknowledgeExecuteEvent Public Member Functions        */
  126. /***************************************************************/
  127.  
  128. inline IString IDDEAcknowledgeExecuteEvent :: commands ( ) const
  129. /*------------------------------------------------------------------------------
  130. | IDDEAcknowledgeExecuteEvent::commands                                        |
  131. ------------------------------------------------------------------------------*/
  132. {
  133.    return buffer();
  134. }
  135.  
  136. /***************************************************************/
  137. /*  IDDEDataEvent Public Member Functions                      */
  138. /***************************************************************/
  139.  
  140. inline IString IDDEDataEvent :: data ( ) const
  141. /*------------------------------------------------------------------------------
  142. | IDDEDataEvent::data                                                          |
  143. ------------------------------------------------------------------------------*/
  144. {
  145.    return buffer();
  146. }
  147.  
  148. /***************************************************************/
  149. /*  IDDEPokeEvent Public Member Functions                      */
  150. /***************************************************************/
  151.  
  152. inline IString IDDEPokeEvent :: pokedData ( ) const
  153. /*------------------------------------------------------------------------------
  154. | IDDEPokeEvent::pokedData                                                     |
  155. ------------------------------------------------------------------------------*/
  156. {
  157.    return buffer();
  158. }
  159.  
  160. /***************************************************************/
  161. /*  IDDEExecuteEvent Public Member Functions                   */
  162. /***************************************************************/
  163.  
  164. inline IString IDDEExecuteEvent :: commands ( ) const
  165. /*------------------------------------------------------------------------------
  166. | IDDEExecuteEvent::commands                                                   |
  167. ------------------------------------------------------------------------------*/
  168. {
  169.    return buffer();
  170. }
  171.  
  172. /***************************************************************/
  173. /*  IDDEEndEvent Public Member Functions                       */
  174. /***************************************************************/
  175.  
  176. inline IDDEEndEvent::Source IDDEEndEvent :: sourceOfEnd ( ) const
  177. /*------------------------------------------------------------------------------
  178. | IDDEEndEvent::sourceOfEnd                                                    |
  179. ------------------------------------------------------------------------------*/
  180. {
  181.    return sourceCl;
  182. }
  183.  
  184. /***************************************************************/
  185. /*  IDDEClientEndEvent Public Member Functions                 */
  186. /***************************************************************/
  187.  
  188. inline IString IDDEClientEndEvent :: application ( ) const
  189. /*------------------------------------------------------------------------------
  190. | IDDEClientEndEvent::application                                              |
  191. ------------------------------------------------------------------------------*/
  192. {
  193.    return strClApp;
  194. }
  195.  
  196. inline IString IDDEClientEndEvent :: topic ( ) const
  197. /*------------------------------------------------------------------------------
  198. | IDDEClientEndEvent::topic                                                    |
  199. ------------------------------------------------------------------------------*/
  200. {
  201.    return strClTopic;
  202. }
  203.  
  204. /***************************************************************/
  205. /*  IDDEBeginEvent Public Member Functions                     */
  206. /***************************************************************/
  207.  
  208. inline IString IDDEBeginEvent :: application ( ) const
  209. /*------------------------------------------------------------------------------
  210. | IDDEBeginEvent::application                                                  |
  211. ------------------------------------------------------------------------------*/
  212.    return strClApp;
  213. }
  214.  
  215. inline IString IDDEBeginEvent :: topic ( ) const
  216. /*------------------------------------------------------------------------------
  217. | IDDEBeginEvent::topic                                                        |
  218. ------------------------------------------------------------------------------*/
  219.    return strClTopic; 
  220. }
  221.  
  222. inline IBase::Boolean IDDEBeginEvent :: isCaseSensitive ( ) const
  223. /*------------------------------------------------------------------------------
  224. | IDDEBeginEvent::isCaseSensitive                                              |
  225. ------------------------------------------------------------------------------*/
  226. {  
  227.    return bClCaseSens;
  228. }
  229.  
  230. inline IDDEBeginEvent& IDDEBeginEvent :: setCaseSensitive ( Boolean caseSensitive )
  231. /*------------------------------------------------------------------------------
  232. | IDDEBeginEvent::setCaseSensitive                                             |
  233. ------------------------------------------------------------------------------*/
  234. {  
  235.    if (!caseSensitive)
  236.       bClCaseSens = false;
  237.    else
  238.       bClCaseSens = true;
  239.    return *this;
  240. }
  241.  
  242. #endif // _IDDEEVT_INL_
  243.