ctkModuleDescriptionConverterInterface.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*=============================================================================
  2. Library: CTK
  3. Copyright (c) 2010 CISTIB - Universitat Pompeu Fabra
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. =============================================================================*/
  14. #ifndef __ctkModuleDescriptionConverterInterface_h
  15. #define __ctkModuleDescriptionConverterInterface_h
  16. #include <QVariant>
  17. #include "CTKModuleDescriptionExport.h"
  18. #include "ctkModuleDescription.h"
  19. /**
  20. * \brief Interface of ModuleDescription converter
  21. *
  22. * A converter can be a Automated GUI generator that converts
  23. * ctkModuleDescription into a Qt window. A converter can also be
  24. * a command line generator that creates a command line string to
  25. * execute an application
  26. */
  27. class CTK_MODULDESC_EXPORT ctkModuleDescriptionConverterInterface : public QObject
  28. {
  29. Q_OBJECT
  30. public:
  31. ctkModuleDescriptionConverterInterface(){};
  32. ~ctkModuleDescriptionConverterInterface(){};
  33. //! Set input Module Description
  34. virtual void setModuleDescription(const ctkModuleDescription &val) = 0;
  35. //!
  36. virtual void update( ) = 0;
  37. //!
  38. virtual const QVariant GetOutput( ) = 0;
  39. };
  40. #endif