ctkXnatReconstructionFolder.cpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. #include "ctkXnatReconstructionFolder.h"
  16. #include "ctkXnatConnection.h"
  17. #include "ctkXnatObjectPrivate.h"
  18. class ctkXnatReconstructionFolderPrivate : public ctkXnatObjectPrivate
  19. {
  20. public:
  21. ctkXnatReconstructionFolderPrivate()
  22. : ctkXnatObjectPrivate()
  23. {
  24. }
  25. void reset()
  26. {
  27. // uri.clear();
  28. }
  29. // QString uri;
  30. };
  31. ctkXnatReconstructionFolder::ctkXnatReconstructionFolder()
  32. : ctkXnatObject(*new ctkXnatReconstructionFolderPrivate())
  33. {
  34. this->setProperty("ID", "Reconstructions");
  35. }
  36. ctkXnatReconstructionFolder::Pointer ctkXnatReconstructionFolder::Create()
  37. {
  38. Pointer ptr(new ctkXnatReconstructionFolder());
  39. ptr->d_func()->selfPtr = ptr;
  40. return ptr;
  41. }
  42. ctkXnatReconstructionFolder::~ctkXnatReconstructionFolder()
  43. {
  44. }
  45. //const QString& ctkXnatReconstructionFolder::uri() const
  46. //{
  47. // Q_D(const ctkXnatReconstructionFolder);
  48. // return d->uri;
  49. //}
  50. //void ctkXnatReconstructionFolder::setUri(const QString& uri)
  51. //{
  52. // Q_D(ctkXnatReconstructionFolder);
  53. // d->uri = uri;
  54. //}
  55. void ctkXnatReconstructionFolder::reset()
  56. {
  57. ctkXnatObject::reset();
  58. }
  59. void ctkXnatReconstructionFolder::fetchImpl()
  60. {
  61. Q_D(ctkXnatReconstructionFolder);
  62. ctkXnatObject::Pointer self = d->selfPtr;
  63. this->connection()->fetch(self.staticCast<ctkXnatReconstructionFolder>());
  64. }