ctkXnatProject.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*=============================================================================
  2. Library: XNAT/Core
  3. Copyright (c) University College London,
  4. Centre for Medical Image Computing
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. =============================================================================*/
  15. #ifndef ctkctkXnatProject_h
  16. #define ctkctkXnatProject_h
  17. #include "ctkXNATCoreExport.h"
  18. #include "ctkXnatObject.h"
  19. #include "ctkXnatDefaultSchemaTypes.h"
  20. class ctkXnatDataModel;
  21. class ctkXnatProjectPrivate;
  22. /**
  23. * @ingroup XNAT_Core
  24. */
  25. class CTK_XNAT_CORE_EXPORT ctkXnatProject : public ctkXnatObject
  26. {
  27. public:
  28. ctkXnatProject(ctkXnatObject* parent = 0, const QString& schemaType = ctkXnatDefaultSchemaTypes::XSI_PROJECT);
  29. virtual ~ctkXnatProject();
  30. virtual QString resourceUri() const;
  31. virtual QString childDataType() const;
  32. const QString secondaryId() const;
  33. void setSecondaryId(const QString& secondaryId);
  34. const QString piFirstName() const;
  35. void setPiFirstName(const QString& piFirstName);
  36. const QString piLastName() const;
  37. void setPiLastName(const QString& piLastName);
  38. QString projectDescription() const;
  39. void setProjectDescription(const QString &description);
  40. void reset();
  41. static const QString SECONDARY_ID;
  42. static const QString DESCRIPTION;
  43. static const QString PI_FIRSTNAME;
  44. static const QString PI_LASTNAME;
  45. private:
  46. virtual void fetchImpl();
  47. virtual void downloadImpl(const QString&);
  48. Q_DECLARE_PRIVATE(ctkXnatProject)
  49. };
  50. #endif