ctkDICOMQuery.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) 2010 Kitware Inc.
  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.commontk.org/LICENSE
  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 __ctkDICOMQuery_h
  15. #define __ctkDICOMQuery_h
  16. // Qt includes
  17. #include <QObject>
  18. #include <QSqlDatabase>
  19. // CTK includes
  20. #include <ctkPimpl.h>
  21. #include "CTKDICOMCoreExport.h"
  22. #include "ctkDICOMIndexerBase.h"
  23. class ctkDICOMQueryPrivate;
  24. class CTK_DICOM_CORE_EXPORT ctkDICOMQuery : public ctkDICOMIndexerBase
  25. {
  26. Q_OBJECT
  27. Q_PROPERTY(QString callingAETitle READ callingAETitle WRITE setCallingAETitle);
  28. Q_PROPERTY(QString calledAETitle READ calledAETitle WRITE setCallingAETitle);
  29. Q_PROPERTY(int port READ port WRITE setPort);
  30. public:
  31. explicit ctkDICOMQuery();
  32. virtual ~ctkDICOMQuery();
  33. /// Set methods for connectivity
  34. void setCallingAETitle ( QString callingAETitle );
  35. const QString& callingAETitle();
  36. void setCalledAETitle ( QString calledAETitle );
  37. const QString& calledAETitle();
  38. void setHost ( QString host );
  39. const QString& host();
  40. void setPort ( int port );
  41. int port();
  42. /// Query a remote DICOM Image Store SCP
  43. void query(QSqlDatabase database);
  44. private:
  45. CTK_DECLARE_PRIVATE(ctkDICOMQuery);
  46. };
  47. #endif