Revision 738470

Go back to digest for 25th November 2007

Features in Utilities

Friedrich W. H. Kossebau committed changes in /trunk/playground/utils/okteta/program:

Introducing the concept of synchronizers...

Terms:
model - a defined structure of some data working model - a model with methods (like the one in memory which you call in code) stream model - a model for the serialized data (like in a file)

Synchronizers should synchronize working models to other models, like stream models.
They are similar to e.g. export/import filters, but stay the whole time until the working model is closed. They care for everything, like if file/other model is changed, so the rest of the program does not need to deal with this. Separation of concerns, yeah :)

For synchronizers which synchronize with files in the filesystem there is the subclass KAbstractDocumentFileSystemSynchronizer, to care for the general work with (remote) files.

Other models to synchronize with may also be working models in remote processes/servers.
Like in a collaborative setting. More on this later, not yet included.

File Changes

Added 23 files
  • /trunk/playground/utils/okteta/program
  •   /libkakao/controllers/document/setremote
  •   /libkakao/controllers/documentsystem/loader
  •   /libkakao/core/document/kabstractdocumentfactory.cpp
  •   /libkakao/core/document/kabstractdocumentfactory.h
  •   /libkakao/core/document/kabstractdocumentfilesystemsynchronizer.cpp
  •   /libkakao/core/document/kabstractdocumentsynchronizer.cpp
  •   /libkakao/core/document/kabstractdocumentsynchronizer.h
  •   /libkakao/core/system/kdocumentloadermanager.cpp
  •   /libkakao/core/system/kdocumentloadermanager.h
  •   /libkakao/core/tests/testdocumentfilesynchronizer.cpp
  •   /libkakao/core/tests/testdocumentfilesynchronizer.h
  •   /libkakao/core/tests/testdocumentfilesynchronizertest.cpp
  •   /libkakao/core/tests/testdocumentfilesynchronizertest.h
  •   /libkakao/core/tests/util
  •   /oktetakakao/document/tests/kbytearraydocumentfactorytest.cpp
  •   /oktetakakao/document/tests/kbytearraydocumentfactorytest.h
  •   /oktetakakao/document/tests/kbytearrayrawfilesynchronizertest.cpp
  •   /libkakao/controllers/document/setremote/setremotecontroller.cpp
  •   /libkakao/controllers/document/setremote/setremotecontroller.h
  •   /libkakao/controllers/documentsystem/loader/loadercontroller.cpp
  •   /libkakao/controllers/documentsystem/loader/loadercontroller.h
  •   /libkakao/core/tests/util/filesystem.cpp
  •   /libkakao/core/tests/util/filesystem.h
Deleted 7 files
  • /trunk/playground/utils/okteta/program
  •   /libkakao/core/document/kdocumentabstractfactory.cpp
  •   /libkakao/core/document/kdocumentabstractfactory.h
  •   /libkakao/core/document/kifileloader.h
  •   /libkakao/core/document/kistorable.h
  •   /libkakao/core/system/kdocumentsynchronizer.cpp
  •   /libkakao/core/system/kdocumentsynchronizer.h
  •   /oktetakakao/document/tests/util
Modified 26 files
  • /trunk/playground/utils/okteta/program
  •   /mainwindow.cpp
  •   /program.cpp
  •   /libkakao/controllers/CMakeLists.txt
  •   /libkakao/core/CMakeLists.txt
  •   /libkakao/gui/CMakeLists.txt
  •   /oktetakakao/document/CMakeLists.txt
  •   /oktetakakao/document/kbytearraydocument.cpp
  •   /oktetakakao/document/kbytearraydocument.h
  •   /oktetakakao/document/kbytearraydocumentfactory.cpp
  •   /oktetakakao/document/kbytearraydocumentfactory.h
  •   /libkakao/core/document/kabstractdocument.cpp
  •   /libkakao/core/document/kabstractdocument.h
  •   /libkakao/core/system/kdocumentcreator.cpp
  •   /libkakao/core/system/kdocumentcreator.h
  •   /libkakao/core/system/kdocumentmanager.cpp
  •   /libkakao/core/system/kdocumentmanager.h
  •   /libkakao/core/tests/CMakeLists.txt
  •   /libkakao/core/tests/testdocument.cpp
  •   /libkakao/core/tests/testdocument.h
  •   /libkakao/core/tests/testdocumenttest.cpp
  •   /libkakao/core/tests/testdocumenttest.h
  •   /oktetakakao/document/tests/CMakeLists.txt
  •   /oktetakakao/document/tests/kbytearraydocumenttest.cpp
  •   /oktetakakao/document/tests/kbytearraydocumenttest.h
  •   /libkakao/controllers/document/synchronize/synchronizecontroller.cpp
  •   /libkakao/controllers/documentsystem/creator/creatorcontroller.cpp
56 files changed in total