ctkXnatReconstruction.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*=============================================================================
  2. Plugin: org.commontk.xnat
  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 ctkXnatReconstruction_h
  16. #define ctkXnatReconstruction_h
  17. #include "ctkXNATCoreExport.h"
  18. #include "ctkXnatObject.h"
  19. class ctkXnatConnection;
  20. class ctkXnatReconstructionPrivate;
  21. class CTK_XNAT_CORE_EXPORT ctkXnatReconstruction : public ctkXnatObject
  22. {
  23. Q_OBJECT
  24. Q_PROPERTY(QString xnat_reconstructedimagedata_id READ reconstructedImageId WRITE setReconstructedImageId)
  25. Q_PROPERTY(QString ID READ id WRITE setId)
  26. Q_PROPERTY(QString type READ type WRITE setType)
  27. Q_PROPERTY(QString baseScanType READ baseScanType WRITE setBaseScanType)
  28. Q_PROPERTY(QString URI READ uri WRITE setUri)
  29. public:
  30. explicit ctkXnatReconstruction(ctkXnatObject* parent = 0);
  31. virtual ~ctkXnatReconstruction();
  32. const QString& reconstructedImageId() const;
  33. void setReconstructedImageId(const QString& reconstructedImageId);
  34. const QString& id() const;
  35. void setId(const QString& id);
  36. const QString& type() const;
  37. void setType(const QString& type);
  38. const QString& baseScanType() const;
  39. void setBaseScanType(const QString& baseScanType);
  40. const QString& uri() const;
  41. void setUri(const QString& uri);
  42. virtual void fetch(ctkXnatConnection* connection);
  43. virtual void download(ctkXnatConnection* connection, const QString& zipFilename);
  44. virtual void add(ctkXnatConnection* connection, const QString& name);
  45. virtual void remove(ctkXnatConnection* connection);
  46. virtual QString getKind() const;
  47. virtual bool holdsFiles() const;
  48. virtual bool receivesFiles() const;
  49. virtual bool isDeletable() const;
  50. private:
  51. QScopedPointer<ctkXnatReconstructionPrivate> d_ptr;
  52. Q_DECLARE_PRIVATE(ctkXnatReconstruction);
  53. Q_DISABLE_COPY(ctkXnatReconstruction);
  54. };
  55. #endif