Selaa lähdekoodia

Remove deprecated module "org.commontk.cli"

Jean-Christophe Fillion-Robin 14 vuotta sitten
vanhempi
commit
a0430427c6

+ 0 - 1
CMakeLists.txt

@@ -331,7 +331,6 @@ SET(CTK_LIBS
 #
 SET(CTK_PLUGINS
   org.commontk.eventbus:OFF
-  #org.commontk.cli:OFF # MessagingCore library need some love :) - Let's disable it for now :(
   org.commontk.configadmin:OFF
   org.commontk.dah.app:OFF
   org.commontk.dah.core:OFF

+ 0 - 33
Plugins/org.commontk.cli/CMakeLists.txt

@@ -1,33 +0,0 @@
-PROJECT(org_commontk_cli)
-
-SET(PLUGIN_export_directive "org_commontk_cli_EXPORT")
-
-SET(PLUGIN_SRCS
-  ctkCLIPlugin.cpp
-)
-
-SET(PLUGIN_MOC_SRCS
-  ctkCLIPlugin.h
-  ctkCLIRegistry.h
-  ctkICLIManager.h
-)
-
-SET(PLUGIN_resources
-
-)
-
-SET(PLUGIN_cached_resourcefiles
-  servicedescriptor.xml
-)
-
-ctkFunctionGetTargetLibraries(PLUGIN_target_libraries)
-
-ctkMacroBuildPlugin(
-  NAME ${PROJECT_NAME}
-  EXPORT_DIRECTIVE ${PLUGIN_export_directive}
-  SRCS ${PLUGIN_SRCS}
-  MOC_SRCS ${PLUGIN_MOC_SRCS}
-  RESOURCES ${PLUGIN_resources}
-  CACHED_RESOURCEFILES ${PLUGIN_cached_resourcefiles}
-  TARGET_LIBRARIES ${PLUGIN_target_libraries}
-)

+ 0 - 42
Plugins/org.commontk.cli/ctkCLIPlugin.cpp

@@ -1,42 +0,0 @@
-/*
- * ctkCLIPlugin.cxx
- *
- *  Created on: Mar 11, 2010
- *      Author: zelzer
- */
-
-#include "ctkCLIPlugin.h"
-
-#include "ctkCLIRegistry.h"
-
-#include <QtPlugin>
-#include <QServiceInterfaceDescriptor>
-#include <QStringList>
-
-#include <iostream>
-
-using namespace QtMobility;
-
-void ctkCLIPlugin::start(ctkPluginContext* context)
-{
-  ctkCLIRegistry* registry = new ctkCLIRegistry();
-  context->registerService(QStringList("ctkCLIRegistry"), registry);
-
-  std::cout << "Plugin A started\n";
-}
-
-void ctkCLIPlugin::stop(ctkPluginContext* context)
-{
-  std::cout << "Plugin B stopped\n";
-}
-
-QObject* ctkCLIPlugin::createInstance(const QServiceInterfaceDescriptor& descriptor,
-                            QServiceContext* context,
-                            QAbstractSecuritySession* session)
-{
-  std::cout << "Creating service instance for " << descriptor.interfaceName().toStdString() << std::endl;
-  return 0;
-}
-
-Q_EXPORT_PLUGIN2(org_commontk_cli, ctkCLIPlugin)
-

+ 0 - 34
Plugins/org.commontk.cli/ctkCLIPlugin.h

@@ -1,34 +0,0 @@
-/*
- * ctkCLIPlugin.h
- *
- *  Created on: Mar 11, 2010
- *      Author: zelzer
- */
-
-#ifndef CTKCLIPLUGIN_H_
-#define CTKCLIPLUGIN_H_
-
-#include <ctkPluginActivator.h>
-
-#include <QServicePluginInterface>
-
-class ctkCLIPlugin : public QObject,
-                  public ctkPluginActivator,
-                  public QtMobility::QServicePluginInterface
-{
-  Q_OBJECT
-  Q_INTERFACES(ctkPluginActivator QtMobility::QServicePluginInterface)
-
-public:
-
-  void start(ctkPluginContext* context);
-  void stop(ctkPluginContext* context);
-
-  QObject* createInstance(const QtMobility::QServiceInterfaceDescriptor& descriptor,
-                          QtMobility::QServiceContext* context,
-                          QtMobility::QAbstractSecuritySession* session);
-
-};
-
-
-#endif /* CTKCLIPLUGIN_H_ */

+ 0 - 37
Plugins/org.commontk.cli/ctkCLIRegistry.h

@@ -1,37 +0,0 @@
-/*=============================================================================
-
-  Library: CTK
-
-  Copyright (c) German Cancer Research Center,
-    Division of Medical and Biological Informatics
-
-  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.apache.org/licenses/LICENSE-2.0
-
-  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 CTKCLIREGISTRY_H
-#define CTKCLIREGISTRY_H
-
-#include <QObject>
-
-class ctkCLIRegistry : public QObject
-{
-  Q_OBJECT
-
-public:
-
-
-};
-
-#endif // CTKCLIREGISTRY_H

+ 0 - 19
Plugins/org.commontk.cli/ctkICLIManager.h

@@ -1,19 +0,0 @@
-/*
- * ctkICLIManager.h
- *
- *  Created on: Mar 11, 2010
- *      Author: zelzer
- */
-
-#ifndef CTKICLIMANAGER_H_
-#define CTKICLIMANAGER_H_
-
-#include <QObject>
-
-class ctkICLIManager : public QObject
-{
-  Q_OBJECT
-};
-
-
-#endif /* CTKICLIMANAGER_H_ */

+ 0 - 1
Plugins/org.commontk.cli/manifest_headers.cmake

@@ -1 +0,0 @@
-#SET(Plugin-ActivationPolicy eager)

+ 0 - 5
Plugins/org.commontk.cli/org_commontk_cli.qrc

@@ -1,5 +0,0 @@
-<!DOCTYPE RCC><RCC version="1.0">
- <qresource prefix="/org_commontk_cli">
-  <file>servicedescriptor.xml</file>
- </qresource>
-</RCC>

+ 0 - 12
Plugins/org.commontk.cli/servicedescriptor.xml

@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-  <service>
-    <name>org.commontk.cli_0.0.0</name>
-    <filepath>liborg_commontk_cli</filepath>
-    <interface>
-      <name>org.commontk.cli.ICLIManager</name>
-      <version>1.0</version>
-      <capabilities></capabilities>
-      <customproperty key="objectclass">ctkICLIManager</customproperty>
-      <description>Interface that allows to discover and manage CLI modules</description>
-    </interface>
-  </service>

+ 0 - 9
Plugins/org.commontk.cli/target_libraries.cmake

@@ -1,9 +0,0 @@
-#
-# See CMake/ctkFunctionGetTargetLibraries.cmake
-# 
-# This file should list the libraries required to build the current CTK plugin.
-# 
-
-SET(target_libraries
-  CTKPluginFramework
-  )