Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-354

QServiceManager loadInterface does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.0.0
    • Service Framework
    • None
    • Maemo, Nokia Qt Sdk Beta Simulator

      QServiceManager loadInterface does not work, I have to use

      // QServiceManager from QtMobility API to load xxx plugin
      QServiceManager* serviceManager = new QServiceManager();

      QList<QtMobility::QServiceInterfaceDescriptor> descriptors =
      serviceManager->findInterfaces("xxxxxxxxx");
      qDebug()<<descriptors.at(0);
      QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath());
      QObject* serviceObject = serviceManager->loadInterface(
      descriptors.at(0));

      Earlier I was trying to use

      // QServiceManager from QtMobility API to load xxx plugin
      QServiceManager* serviceManager = new QServiceManager();

      qDebug()<<descriptors.at(0);
      QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath());
      QObject* serviceObject = serviceManager->loadInterface(
      interfaceName);

      The plugin/service is getting only if I call the findInterfaces() observed on Maemo

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            alex Alex (closed Nokia identity) (Inactive)
            sriky27 srikanth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes