Thanks for your help...

I think GtkMozEmbed already implemented a lot of interfaces so you doesn't
needs to re-implement these interfaces but as i am working on windows it is
not useful for me.

if you can provide any link to any running sample code with downloading for
windows that will be very helpful for me.


Vineeth Aravindakshan wrote:
> 
> I am not sure abt that MFC part..You have check if any message /
> signal is emitted when a link is clicked.
> If u can handle that signal, then u can check the url and download the
> file in the signal handler.
> 
> Check out the gtk mozembed signal (
> http://www.mozilla.org/unix/gtk-embedding.html)
> GtkMozEmbed emits  open_uri signal when a link is clicked.
> So the callback looks like this : gint open_uri_cb (GtkMozEmbed
> *embed, const char *uri, gpointer data);
> 
> This signal is emitted when the document tries to load a new document,
> for example when someone clicks on a link in a web page. This signal
> gives the embedder the opportunity to keep the new document from being
> loaded. The uri argument is the uri that's going to be loaded.
> 
> If you return TRUE from this signal, the new document will NOT be
> loaded. If you return FALSE the new document will be loaded. This is
> somewhat non-intuitive. Think of it as the Mozilla engine is asking if
> you want to interrupt the loading of a new document. By returning TRUE
> you are saying "don't load this document."
> _______________________________________________
> dev-embedding mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-embedding
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Which-interfaces-i-need-to-implement-to-implement-downloading-tp21602465p21746085.html
Sent from the Mozilla - Embedding mailing list archive at Nabble.com.

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to