C++ (Qt)CommandServer::CommandServer(const CComPtr<IBackupRestoreClient>& backupRestoreClient) : m_backupRestoreClient(backupRestoreClient) , m_stdinNotifier(new QSocketNotifier(STDIN_FILENO, QSocketNotifier::Read, this)) , m_stdout(new QTextStream(stdout)) , m_commandHandlersFactory(new CommandHandlersFactory(m_backupRestoreClient)){ connect(m_stdinNotifier.data(), &QSocketNotifier::activated, this, &CommandServer::readInputCommands);}