I have created this program which allows users to enter a URL and the program will grab the pages content and strip out all HTML tags so only plain text is left.
Beside this I have created a GUI in Qt so the user can use an interface between the command line utility easily.
My question is how do I go about link these together via pipes. I can communicate with the executable via popen(), but this is only a one way pipe so i can not return the information back to the GUI.
I am a little confused in how the Qt program can utilize the executable program. I basically want the user to be able to type a URL in a text box in the Qt GUI and then click submit which will send the URL to the executable which then processes the URL and returns the content to GUI in a plain text area.
By the way I am using C and working on Linux.