| 76 | |
| 77 | |
| 78 | bool OktetaDocument::save( IDocument::DocumentSaveMode mode ) |
| 79 | { |
| 80 | if( mode & Discard ) |
| 81 | return true; |
| 82 | |
| 83 | if( state() == IDocument::Clean ) |
| 84 | return false; |
| 85 | |
| 86 | Kasten::AbstractModelSynchronizer* synchronizer = mByteArrayDocument->synchronizer(); |
| 87 | |
| 88 | Kasten::AbstractSyncToRemoteJob* syncJob = synchronizer->startSyncToRemote(); |
| 89 | const bool syncSucceeded = Kasten::JobManager::executeJob( syncJob ); |
| 90 | |
| 91 | if( syncSucceeded ) |
| 92 | { |
| 93 | notifySaved(); |
| 94 | notifyStateChanged(); |
| 95 | } |
| 96 | |
| 97 | return syncSucceeded; |
| 98 | } |
| 99 | |
| 100 | |
| 101 | void OktetaDocument::reload() |
no outgoing calls
no test coverage detected