New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for NetworkService::MoveBefore/After #24
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment but guess this should be generally fine.
Well spotted! I updated the PR with that change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No wait, this doesn't compile:
networkservice.cpp:336:49: error: no matching function for call to ‘NetworkService::Private::InterfaceProxy::asyncCall(const char [11], const QDBusObjectPath&)’
{ return asyncCall("MoveBefore", service); }
Could also squash the commits into one.
And shouldn't these new functions be also defined in |
We haven't bothered with those during development. Changes updated with tooling going through all the projects when getting close doing an os release. |
That's strange. On my machine it compiles without any errors using this command: |
083c6b2
to
f51ec2c
Compare
What's the build environment and qt version? I'm guessing it might be some relatively new. On our 5.6 I get this compiling by using QVariant::fromValue(service)) as parameter. Disclaimer: didn't confirm the D-Bus call gets done with the proper signature. |
f51ec2c
to
86d92e3
Compare
I'm using 5.15 here.
I updated my code to use this instead and can confirm that it works on my system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better now. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry again. Being about to merge and got one more 'wait a minute'.
So the API here uses QDBusObjectPath on the methods while the 'path' property and the NetworkService ctor use QString as type. I think it would be nice having the actual d-bus details under the hood, not leaking externally on the headers, and thus use also QString for the services here. Would also work better if exposing the functionality to QML.
No worries! Better to get it right :) Do you mean something like this: |
Yea. |
86d92e3
to
666f0b0
Compare
Great, updated and tested. |
Implement support for using the NetworkService::MoveBefore and NetworkService::MoveAfter commands over dbus. Signed-off-by: Pelle Windestam <pelle@windestam.se>
666f0b0
to
7103baf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good and hopefully this time for real :D
Hello. I noted that he MoveBefore/MoveAfter methods were not implemented so I gave it a go.