void UBWebPublisher::persist(UBDocumentProxy* pDocumentProxy) { if (!pDocumentProxy) return; UBDocumentPublisher* publisher = new UBDocumentPublisher(pDocumentProxy, this); // the publisher will self delete when publication finishes publisher->publish(); }
void UBWebPublisher::persist(UBDocumentProxy* pDocumentProxy) { if (!pDocumentProxy) return; UniboardSankoreTransition document; QString documentPath(pDocumentProxy->persistencePath()); document.checkDocumentDirectory(documentPath); UBDocumentPublisher* publisher = new UBDocumentPublisher(pDocumentProxy, this); // the publisher will self delete when publication finishes publisher->publish(); }