Browse Source

Allow python access to start/stop and store data methods

Let a python script create a working query/retrieve/store server
for use in testing and demo situations.
Steve Pieper 14 years ago
parent
commit
7c75459244
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Libs/DICOM/Core/ctkDICOMTester.h

+ 5 - 5
Libs/DICOM/Core/ctkDICOMTester.h

@@ -69,19 +69,19 @@ public:
       results into a no-op. The return value is 0.
       \sa QProcess::start(),
    */
-  QProcess* startDCMQRSCP();
+  Q_INVOKABLE QProcess* startDCMQRSCP();
 
   /** Stop the running DCMQRSCP process. Returns it's exit status or false if
       there is no running process.
   */
-  bool stopDCMQRSCP();
+  Q_INVOKABLE bool stopDCMQRSCP();
 
-  /** Pushes data (DCM images) using DCMTK storeSCU app. It creates a separate
-      process and waits for its termination.
+  /** Pushes data (DCM images referred to by file name in data list) using DCMTK 
+      storeSCU app. It creates a separate process and waits for its termination.
       To be working, dcmqrscp must be running
       \sa startDCMQRSCP()
    */
-  bool storeData(const QStringList& data);
+  Q_INVOKABLE bool storeData(const QStringList& data);
 
 protected:
   QScopedPointer<ctkDICOMTesterPrivate> d_ptr;