Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Service Framework - invoke signal on server side
Forum Updated to NodeBB v4.3 + New Features

Service Framework - invoke signal on server side

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lucabox
    wrote on last edited by
    #1

    hi!

    I am experimenting a bit with the (IPC) service framework using qtmoiblity 1.1 (currently on windows but the app I am doing will have to run on symbian & meego)

    my question is:

    can I invoke a signal on the server Qobject derived class?

    I wrote a helper function to call methods on the server side:

    @void MyClass::invokeServerMethod(const char* aMethod, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3) {
    QObject* server = m_clientHelper->service();
    if(server) {
    if( !QMetaObject::invokeMethod(server, aMethod, Qt::QueuedConnection, val0, val1, val2, val3) ) {
    CRITICAL("could not invoke method" << QString(aMethod));
    }
    } else {
    CRITICAL("No service found, could not invoke method" << aMethod);
    }
    return;
    }
    @

    everything works as long as I call on the server side a SLOT, but if the parameter I pass as aMethod is a SIGNAL then I hit this assert it qtmobility code

    @Q_ASSERT(d->endPointType == ObjectEndPoint::Client); in file ipc\objectendpoint.cpp@

    which makes me think that I cannot invoke a signal on the server fron my client process.

    anyone knows why is that?

    Thanks!


    Mobile Software Engineer
    France Telecom R&amp;D UK, Orange Labs

    1 Reply Last reply
    0
    • B Offline
      B Offline
      baysmith
      wrote on last edited by
      #2

      Can you provide a more complete example?

      Nokia Certified Qt Specialist.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved