bool MsgJobs::Prepare() { int res = 1; if (jobs_flags & JOB_LEAVEMSG) { res &= m_leaveMsgAddThread.Prepare(); res &= m_leaveMsgDelThread.Prepare(); res &= m_leaveMsgGetThread.Prepare(); } return !!res; }