[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    QNetworkAccessManager and KDE's KIO
From:       Weng Xuetian <wengxt () gmail ! com>
Date:       2012-03-20 4:26:05
Message-ID: 2716643.QMj5ZEzz9o () saber-chakra
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/alternative)]


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!
[Attachment #7 (unknown)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" \
content="1" /><style type="text/css"> p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Monospace'; font-size:9pt; font-weight:400; \
font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hi,</p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I'm currently implementing a \
library that require network access, and I need some custom url such as \
&quot;myapp://&quot; to do oauth callback, so I create a class inherits \
QNetworkAccessManager.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">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.</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">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.</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">Any idea about how to solve this problem? Is \
simply keep a pointer to the old networkmanager and redirect createRequest to it \
enough?</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Thanks!</p></body></html>


["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic