浏览代码

DOC: a preliminary hint on how to call the app

ivowolf 14 年之前
父节点
当前提交
029b5429d7
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      Applications/ctkExampleHostedApp/ctkExampleHostedAppMain.cpp

+ 8 - 8
Applications/ctkExampleHostedApp/ctkExampleHostedAppMain.cpp

@@ -23,6 +23,9 @@
 #include <ctkPluginFramework.h>
 #include <ctkPluginException.h>
 
+// for testing purposes use:
+// --hostURL http://localhost:8081/host --applicationURL http://localhost:8082/app dicomapp
+
 // replace "//$" with nothing as soon as ctkDicomAppServer/ctkDicomHostService exist
 //$#include <ctkDicomAppServer.h>
 //$#include <ctkDicomHostService.h>
@@ -74,7 +77,6 @@ int main(int argv, char** argc)
   QString appURL = qApp->arguments().at(4);
 
   // setup the plugin framework
-
   ctkPluginFrameworkFactory fwFactory;
   ctkPluginFramework* framework = fwFactory.getFramework();
 
@@ -145,13 +147,6 @@ int main(int argv, char** argc)
     exit(3);
   }
 
-  // setup the communication infrastructure: DicomAppServer and DicomHostService
-
-//$  ctkDicomAppServer * appServer = new ctkDicomAppServer(appURL);
-
-//$  ctkDicomHostInterface * hostInterface = new ctkDicomHostService(hostURL);
-//$  framework->getPluginContext()->registerService(QStringList("ctkDicomHostInterface"), hostInterface);
-
   // start the plugin with the business logic
   try
   {
@@ -163,6 +158,11 @@ int main(int argv, char** argc)
     qCritical() << e.what();
   }
 
+  // setup the communication infrastructure: DicomAppServer and DicomHostService
+//$  ctkDicomAppServer * appServer = new ctkDicomAppServer(appURL); // accesses the app-plugin via getService("ctkDicomAppInterface");
+//$  ctkDicomHostInterface * hostInterface = new ctkDicomHostService(hostURL);
+//$  framework->getPluginContext()->registerService(QStringList("ctkDicomHostInterface"), hostInterface);
+
   framework->start();
 
   QWidget placeholder;