* @brief Update document data via html file name and url. * * @param strHtmlFileName File must be unicode format. * @param strURL * @param nFlags * @return true * @return false */
| 251 | * @return false |
| 252 | */ |
| 253 | bool WizDocument::UpdateDocument6(const QString &strHtmlFileName, const QString &strURL, int nFlags) |
| 254 | { |
| 255 | if (strHtmlFileName.isEmpty()) |
| 256 | return false; |
| 257 | |
| 258 | if (!m_db.canEditDocument(m_data)) |
| 259 | return false; |
| 260 | |
| 261 | QString strHtml; |
| 262 | if (WizLoadUnicodeTextFromFile(strHtmlFileName, strHtml)) { |
| 263 | //TODO: update m_data |
| 264 | return m_db.updateDocumentData(m_data, strHtml, strURL, nFlags); |
| 265 | } else { |
| 266 | return false; |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | /** |
| 271 | * @brief Delete from server |
nothing calls this directly
no test coverage detected