| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 | 
							- /*=========================================================================
 
-   Library:   CTK
 
-   Copyright (c) Kitware Inc.
 
-   Licensed under the Apache License, Version 2.0 (the "License");
 
-   you may not use this file except in compliance with the License.
 
-   You may obtain a copy of the License at
 
-       http://www.commontk.org/LICENSE
 
-   Unless required by applicable law or agreed to in writing, software
 
-   distributed under the License is distributed on an "AS IS" BASIS,
 
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
-   See the License for the specific language governing permissions and
 
-   limitations under the License.
 
- =========================================================================*/
 
- #ifndef __ctkDICOMQuery_h
 
- #define __ctkDICOMQuery_h
 
- // Qt includes 
 
- #include <QObject>
 
- #include <QMap>
 
- #include <QString>
 
- #include <QSqlDatabase>
 
- // CTK includes
 
- #include <ctkPimpl.h>
 
- #include "ctkDICOMCoreExport.h"
 
- #include "ctkDICOMDatabase.h"
 
- class ctkDICOMQueryPrivate;
 
- class CTK_DICOM_CORE_EXPORT ctkDICOMQuery : public QObject
 
- {
 
-   Q_OBJECT
 
-   Q_PROPERTY(QString callingAETitle READ callingAETitle WRITE setCallingAETitle);
 
-   Q_PROPERTY(QString calledAETitle READ calledAETitle WRITE setCallingAETitle);
 
-   Q_PROPERTY(int port READ port WRITE setPort);
 
- public:
 
-   explicit ctkDICOMQuery();
 
-   virtual ~ctkDICOMQuery();
 
-   
 
-   /// Set methods for connectivity
 
-   void setCallingAETitle ( QString callingAETitle );
 
-   const QString& callingAETitle();
 
-   void setCalledAETitle ( QString calledAETitle );
 
-   const QString& calledAETitle();
 
-   void setHost ( QString host );
 
-   const QString& host();
 
-   void setPort ( int port );
 
-   int port();
 
-   
 
-   /// Query a remote DICOM Image Store SCP
 
-   void query(ctkDICOMDatabase& database);
 
-   /// Add a StudyInstanceUID to be queried
 
-   void addStudyInstanceUID( QString StudyInstanceUID );
 
-   /// Access the list of study instance UIDs from the last query
 
-   QStringList studyInstanceUIDQueried();
 
-   ///
 
-   // Filters are keyword/value pairs as generated by
 
-   // the ctkDICOMWidgets in a human readable (and editable)
 
-   // format.  The Query is responsible for converting these
 
-   // into the appropriate dicom syntax for the C-Find
 
-   void setFilters(QMap<QString,QVariant>);
 
-   QMap<QString,QVariant> filters();
 
- signals:
 
-   void progress(int progress);
 
-   void progress(const QString& message);
 
- protected:
 
-   QScopedPointer<ctkDICOMQueryPrivate> d_ptr;
 
- private:
 
-   Q_DECLARE_PRIVATE(ctkDICOMQuery);
 
-   Q_DISABLE_COPY(ctkDICOMQuery);
 
- };
 
- #endif
 
 
  |