* @brief Re-runs every internal cache fetch and ships the results back. */
| 145 | * @brief Re-runs every internal cache fetch and ships the results back. |
| 146 | */ |
| 147 | void Sessions::DatabaseWorker::refreshAll() |
| 148 | { |
| 149 | if (!m_db.isOpen()) |
| 150 | return; |
| 151 | |
| 152 | refreshSessionListInternal(); |
| 153 | refreshTagListInternal(); |
| 154 | refreshLockStateInternal(); |
| 155 | |
| 156 | Q_EMIT sessionListRefreshed(m_sessionList); |
| 157 | Q_EMIT tagListRefreshed(m_tagList); |
| 158 | Q_EMIT lockStateChanged(m_locked, m_passwordHash); |
| 159 | } |
| 160 | |
| 161 | //-------------------------------------------------------------------------------------------------- |
| 162 | // Session mutations |