Use a socketnotifier and open/read/close methods instead of QFile