okteta
documentsyncmanager.cpp
Go to the documentation of this file.
85 void DocumentSyncManager::setDocumentSynchronizerFactory( AbstractModelSynchronizerFactory* synchronizerFactory )
144 KUrl newUrl = KFileDialog::getSaveUrl( /*mWorkingUrl.url()*/KUrl(), filterString, /*mWidget*/0, processTitle );
274 mSaveDiscardDialog ? mSaveDiscardDialog->queryDiscardOnReload( document, processTitle ) : Cancel;
297 void DocumentSyncManager::onDocumentsAdded( const QList<Kasten2::AbstractDocument*>& documents )
302 void DocumentSyncManager::onDocumentsClosing( const QList<Kasten2::AbstractDocument*>& documents )
Definition: kastencore.h:69
DocumentSyncManager(DocumentManager *manager)
Definition: documentsyncmanager.cpp:49
virtual AbstractConnectJob * startConnect(AbstractDocument *document, const KUrl &url, AbstractModelSynchronizer::ConnectOption option)=0
bool setSynchronizer(AbstractDocument *document)
Definition: documentsyncmanager.cpp:131
void addDocument(AbstractDocument *document)
Definition: documentmanager.cpp:55
void setOverwriteDialog(AbstractOverwriteDialog *overwriteDialog)
Definition: documentsyncmanager.cpp:61
void urlUsed(const KUrl &url)
KUrl urlOf(AbstractDocument *document) const
Definition: documentsyncmanager.cpp:78
virtual AbstractSyncFromRemoteJob * startSyncFromRemote()=0
overwrite local with remote (reload)
QList< AbstractDocument * > documents() const
Definition: documentmanager.cpp:52
virtual Answer queryDiscard(const AbstractDocument *document, const QString &title) const =0
virtual AbstractSyncWithRemoteJob * startSyncWithRemote(const KUrl &url, AbstractModelSynchronizer::ConnectOption option)=0
changes the
virtual Answer queryOverwrite(const KUrl &url, const QString &title) const =0
virtual Answer querySaveDiscard(const AbstractDocument *document, const QString &title) const =0
Definition: kastencore.h:67
Definition: abstractloadjob.h:40
virtual QString mimeType() const =0
Definition: kastencore.h:65
virtual AbstractModelSynchronizer * createSynchronizer() const =0
virtual QString supportedWorkType() const =0
returns the id of the work model type
void focusRequested(Kasten2::AbstractDocument *document)
QStringList supportedRemoteTypes() const
Definition: documentsyncmanager.cpp:67
virtual LocalSyncState localSyncState() const =0
KUrl url() const
Definition: abstractmodelsynchronizer.cpp:40
virtual ContentFlags contentFlags() const =0
virtual QString supportedRemoteType() const =0
returns the id of the remote model type
Definition: kastencore.h:60
virtual AbstractSyncToRemoteJob * startSyncToRemote()=0
overwrite remote with local (save)
void save(AbstractDocument *document)
Definition: documentsyncmanager.cpp:284
Definition: abstractdocument.h:43
void setSaveDiscardDialog(AbstractSaveDiscardDialog *saveDiscardDialog)
Definition: documentsyncmanager.cpp:56
virtual AbstractLoadJob * startLoad(const KUrl &url)=0
bool hasSynchronizerForLocal(const QString &mimeType) const
Definition: documentsyncmanager.cpp:72
AbstractModelSynchronizer * synchronizer() const
Definition: abstractdocument.cpp:40
Definition: kastencore.h:36
bool canClose(AbstractDocument *document)
Definition: documentsyncmanager.cpp:221
void setDocumentSynchronizerFactory(AbstractModelSynchronizerFactory *synchronizerFactory)
Definition: documentsyncmanager.cpp:85
Definition: documentmanager.h:44
void reload(AbstractDocument *document)
Definition: documentsyncmanager.cpp:265
static QString mimetypeFilterString(const QStringList &_mimetypes)
Creates a filter string as used by KFileDialog from _mimetypes Does a workaround for "application/oct...
Definition: loadercontroller.cpp:73
virtual Answer queryDiscardOnReload(const AbstractDocument *document, const QString &title) const =0
virtual ~DocumentSyncManager()
Definition: documentsyncmanager.cpp:308
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.