> From: "jan-arve.saet...@nokia.com" <jan-arve.saet...@nokia.com>
>ext Corentin Jabot wrote on 2012-05-02: > >> >> bool >> QServiceManager::setInterProcessMethod(QService::InterProcessMethod); >> >> enum QService::InterProcessMethod { >> Native, >> LocalSocket, >> DBus >> } >> >Wouldn't > >enum QService::InterProcessMethod { > Native, > LocalSocket >} > >be sufficient? > >I've hardly used the service framework, but I don't see why DBus enum value is >strictly needed, since it would lead to less portable code: > >mgr->setInterProcessMethod(QService::DBus); > >is less portable than > >mgr->setInterProcessMethod(QService::Native); > >Limiting the enum values to be cross-platform would keep the API simpler, and >_maybe_ >the implementation would be simpler too, since we don't have to deal with the >condition >where the desired IPC mechanism is not available. What about platforms where the developer wants to use D-bus but it is _not_ the native IPC? (e.g. Windows) That said, how would this account for configuring D-Bus for local or network sockets? $0.02 Ben _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development