summaryrefslogtreecommitdiffstats
path: root/examples/maildirresource/maildirresource.h
Commit message (Collapse)AuthorAge
* Cleanup.Christian Mollekopf2018-08-02
|
* Adapt to KAsync changesChristian Mollekopf2017-03-01
|
* Moved inspection commands to a separate inspector.Christian Mollekopf2016-11-28
|
* CleanupChristian Mollekopf2016-11-27
|
* Specify the resource name in one placeChristian Mollekopf2016-10-21
|
* Refactor how the storage is used.Christian Mollekopf2016-10-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the initial refactoring to improve how we deal with the storage. It does a couple of things: * Rename Sink::Storage to Sink::Storage::DataStore to free up the Sink::Storage namespace * Introduce a Sink::ResourceContext to have a single object that can be passed around containing everything that is necessary to operate on a resource. This is a lot better than the multiple separate parameters that we used to pass around all over the place, while still allowing for dependency injection for tests. * Tie storage access together using the new EntityStore that directly works with ApplicationDomainTypes. This gives us a central place where main storage, indexes and buffer adaptors are tied together, which will also give us a place to implement external indexes, such as a fulltextindex using xapian. * Use ApplicationDomainTypes as the default way to pass around entities. Instead of using various ways to pass around entities (buffers, buffer adaptors, ApplicationDomainTypes), only use a single way. The old approach was confusing, and was only done as: * optimization; really shouldn't be necessary and otherwise I'm sure we can find better ways to optimize ApplicationDomainType itself. * a way to account for entities that have multiple buffers, a concept that I no longer deem relevant. While this commit does the bulk of the work to get there, the following commits will refactor more stuff to get things back to normal.
* Avoid using the resource object to remove the data from disk.Christian Mollekopf2016-10-07
| | | | | ...because creating it will potentially start transactions on the database we're about to remove.
* Shorten the types to be more distinctive.Christian Mollekopf2016-07-08
| | | | | The org.kde prefix is useless and possibly misleading. Simply prefixing with sink is more unique and shorter.
* Implemented maildir mail moves and got it to pass tests againChristian Mollekopf2016-06-13
|
* The maildirresource is back in actionChristian Mollekopf2016-05-29
|
* Refactored the generic resource to use separate classes forChristian Mollekopf2016-05-28
| | | | | | | | changereplay and synchronization. This cleans up the API and avoids the excessive passing around of transactions. It also provides more flexibility in eventually using different synchronization strategies for different resources.
* Handle all the remoteId updating and entity reading in the base-class.Christian Mollekopf2016-05-25
|
* Extracted createFolder functionChristian Mollekopf2016-05-08
|
* Create a drafts folder on start, and then move any draft in there.Christian Mollekopf2016-05-08
|
* Writeback of unread flag changesChristian Mollekopf2016-02-02
|
* Renamed Akonadi2 to SinkChristian Mollekopf2016-01-20
| | | | (except for documentation).
* Prepared maildir inspection implementationChristian Mollekopf2016-01-19
|
* Fixed maildir mail removal.Christian Mollekopf2015-12-30
| | | | | | During removal we no longer have access to the entity, while that could be fixed by keeping a copy of the entity in the removed entity, we can also just use the full path.
* Centralize where we create the storesChristian Mollekopf2015-12-30
|
* Moved all generic synchronization code to the base class.Christian Mollekopf2015-12-30
|
* Don't expose enabling/disabling of changerecording to resourceChristian Mollekopf2015-12-30
| | | | implementations
* Pass transactions into sync functionsChristian Mollekopf2015-12-29
| | | | So we create the store in one place.
* Changereplay for maildir folders.Christian Mollekopf2015-12-28
| | | | | The sync and changereplay can not run at the same time, or would have to share the transaction otherwise.
* Generalized the sync algorithms and applied them to mail.Christian Mollekopf2015-12-20
| | | | | Not necessarily the smartest algorithms, but at least they work and are generally applicable.
* Detect modifications and removals on folders in the maildirresourceChristian Mollekopf2015-12-18
|
* Use domain adaptor in maildirresourceChristian Mollekopf2015-12-17
|
* A read-only maildir resource.Christian Mollekopf2015-12-15
Respectively a first prototype thereof.