summaryrefslogtreecommitdiffstats
path: root/examples/dummyresource
Commit message (Collapse)AuthorAge
* Avoid storing the password in the configurationChristian Mollekopf2017-09-18
| | | | | | | The password (or any other secret), is now cached in the client process (in-memory only), and delivered to the resource via command. The resource avoids doing any operations against the source until the secret is available.
* Use imported targets instead of qt5_use_modulesHeiko Becker2017-07-29
| | | | | | | | | | | | | | | | | | | From Qt's documentation: "This macro is obsolete. Use target_link_libraries with IMPORTED targets instead." It's only recommended with cmake >=2.8.9 & < 2.8.12. Sink already requires cmake 3.0. One advantage of using the imported targets is, that cmake complains if a target isn't found before it's used, like Qt5Concurrent missing from the find_package_call here. Reviewers: #sink, cmollekopf Reviewed By: #sink, cmollekopf Subscribers: #sink Tags: #sink Differential Revision: https://phabricator.kde.org/D6361
* No more SINK_DEBUG_AREAChristian Mollekopf2017-05-12
|
* Removed the resource mapperChristian Mollekopf2017-04-28
|
* We set the instance identifier in the base classChristian Mollekopf2017-04-11
|
* Implemented notification support in the model.Christian Mollekopf2017-03-24
| | | | | | | | This will allow us to fold things like progress and sync status directly into the model. Usecases are mail download progress and folder sync progress. Ideally we would also solve the resource/account state through this.
* Move type implementations in one placeChristian Mollekopf2017-03-21
| | | | | | | Having them separated is rather pointless (since we need one for every type, and all types are the interface of sink, as one), and caused quite a bit of friction when adding new types. This will also make it easier to change things for all types.
* Removed unnecessary default implementationsChristian Mollekopf2017-03-21
|
* Port away from syncStartv0.1.0Christian Mollekopf2017-03-02
|
* Adapt to KAsync changesChristian Mollekopf2017-03-01
|
* Filter resources by the types they support.Christian Mollekopf2017-03-01
| | | | | This avoid uselessly querying resources only to discover that they don't have a facade for the type.
* Don't set capabilities as property on creation.Christian Mollekopf2016-12-15
| | | | | | Instead we make it part of the plugin. This ensure we also have access to the proper capabilities when creating a resource via sinksh.
* Move the BLOB property handling to the entitystore.Christian Mollekopf2016-12-09
| | | | | | This is really part of the storage, and will help us to cleanly implement features like moving properties into a temporary place when reading in a clean way as well.
* Wrap references in a Reerence type.Christian Mollekopf2016-12-08
| | | | | | | | This allows us to make sure that references are not taken out of context (the resource). Because we need to use the type-specific accessors more we also ran into a problem that we cannot "downcast" a reference with the change recording still working, for that we have the cast<T>() operator now.
* Move mail to sent folder after sending itChristian Mollekopf2016-12-06
|
* Renamed RemoteIdMap to SynchronizerStoreChristian Mollekopf2016-11-28
|
* Used the CommandProcessor as central place for all command processing.Christian Mollekopf2016-11-28
|
* Moved inspection commands to a separate inspector.Christian Mollekopf2016-11-28
|
* Folded the SourceWriteback into the Synchronizer.Christian Mollekopf2016-11-21
| | | | | | | | | | | | By concentrating all communication to the source in one place we get rid of several oddities. * Quite a bit of duplication since both need access to the synchronizationStore and the source. * We currently have an akward locking in place because both classes access the ync store. This is not easier to resolve cleanly. * The live of resource implementers becomes easier. * An implementation could elect to not use changereplay and always do a full sync... (maybe?)
* Implement debug stream operators for query.Christian Mollekopf2016-11-07
|
* Specify the resource name in one placeChristian Mollekopf2016-10-21
|
* Ported the pipeline to the entitystoreChristian 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.
* Ported to the kasync revampChristian Mollekopf2016-09-15
|
* 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.
* A new debug system.Christian Mollekopf2016-07-07
| | | | | | | | | | | | | | | Instead of a single #define as debug area the new system allows for an identifier for each debug message with the structure component.area. The component is a dot separated identifier of the runtime component, such as the process or the plugin. The area is the code component, and can be as such defined at compiletime. The idea of this system is that it becomes possible to i.e. look at the output of all messages in the query subsystem of a specific resource (something that happens in the client process, but in the resource-specific subcomponent). The new macros are supposed to be less likely to clash with other names, hence the new names.
* Test the resource statusChristian Mollekopf2016-07-06
|
* Dummyresource mailtestChristian Mollekopf2016-06-26
|
* Open a valid database also in the NullChangeReplay and skip internal keysChristian Mollekopf2016-05-31
|
* Dummyresource cleanupChristian Mollekopf2016-05-30
|
* Fixed genericresource so it works with the maildirresourcetestChristian Mollekopf2016-05-29
|
* Moved the classes to individual filesChristian Mollekopf2016-05-28
|
* 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.
* Property definitionsChristian Mollekopf2016-05-10
| | | | | Instead of hardcoding assumptions all over the place we create typesafe setters and getters for all properties.
* Use Sink instead of SinkCommonChristian Mollekopf2016-02-09
|
* Gather more timingsChristian Mollekopf2016-02-08
|
* Executed database removal in the resource instead of the client.Christian Mollekopf2016-02-08
| | | | | The resource doesn't really notify all clients properly about the removal, but the tests all still pass.
* Renamed Akonadi2 to SinkChristian Mollekopf2016-01-20
| | | | (except for documentation).
* Working resource inspectionChristian Mollekopf2016-01-18
|
* Draft of inspection APIChristian Mollekopf2016-01-18
|
* Use the existing synchronization facilities also in the DummyResourceChristian Mollekopf2015-12-30
|
* Centralize where we create the storesChristian Mollekopf2015-12-30
|
* Removed an unnecessary member variableChristian Mollekopf2015-12-17
|
* Use the terser version to express the same thingChristian Mollekopf2015-12-17
|
* Use the domain adaptor in the synchornization code of the dummyChristian Mollekopf2015-12-17
| | | | | | | resource as well. The code is easier to read that way, depends less on flatbuffers, and there is no measurable impact on performance.
* Avoid duplication accross resource implementationsChristian Mollekopf2015-12-15
|
* Add something random to subject, so the mails are easy to differentiateChristian Mollekopf2015-12-10
|
* Resolve the right remote idChristian Mollekopf2015-12-10
|
* A change-replay functionChristian Mollekopf2015-12-10
|