Added QObject parameter to Client class.