Implementing your own Interfaces

From OpenOffice.org Wiki

Jump to: navigation, search
Image:Book.png


PAGE_TITLE: SW1wbGVtZW50aW5nIHlvdXIgb3duIEludGVyZmFjZXM=

For the my_module.XSomething interface, add a string to be returned that informs the caller when methodOne() was called successfully.

OUString MyService2Impl::methodOne( OUString const & str )
      throw (RuntimeException)
  {
      return OUString( RTL_CONSTASCII_USTRINGPARAM(
          "called methodOne() of MyService2 implementation: ") ) + str;
  }
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools