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

QServiceManager loadInterface does not work

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: