-
-#ifdef BUILD_QTGUI
-QVariant Client::connectToLocalCore(QString, QString) { return QVariant(); }
-void Client::disconnectFromLocalCore() {}
-
-#elif defined BUILD_MONO
-QVariant Client::connectToLocalCore(QString user, QString passwd) {
- // TODO catch exceptions
- QVariant reply = Core::connectLocalClient(user, passwd);
- QObject::connect(Core::localSession(), SIGNAL(proxySignal(CoreSignal, QVariant, QVariant, QVariant)), ClientProxy::instance(), SLOT(recv(CoreSignal, QVariant, QVariant, QVariant)));
- QObject::connect(ClientProxy::instance(), SIGNAL(send(ClientSignal, QVariant, QVariant, QVariant)), Core::localSession(), SLOT(processSignal(ClientSignal, QVariant, QVariant, QVariant)));
- return reply;
-}
-
-void Client::disconnectFromLocalCore() {
- disconnect(Core::localSession(), 0, ClientProxy::instance(), 0);
- disconnect(ClientProxy::instance(), 0, Core::localSession(), 0);
- Core::disconnectLocalClient();
-}
-
-#endif