QNetworkAccessManager and KDE's KIO

4 views
Skip to first unread message

Weng Xuetian

unread,
Mar 20, 2012, 12:26:05 AM3/20/12
to kde-...@kde.org

Hi,

I'm currently implementing a library that require network access, and I need some custom url such as "myapp://" to do oauth callback, so I create a class inherits QNetworkAccessManager.

 

But I found if anyone want to KDE's KIO::Integration::AccessManager to replace the NetworkAccessManager in order to use KDE proxy setting and KIO, there will be some problem. I don't want this library hardly depends on KDE, but I also hope it can integrate with KDE well.

 

I read attica's code but seems it use a custom interface, which is not fesible here since I need to set the NetworkAccessManager to the QWebView.

 

Any idea about how to solve this problem? Is simply keep a pointer to the old networkmanager and redirect createRequest to it enough?

 

Thanks!

signature.asc
Reply all
Reply to author
Forward
0 new messages