summaryrefslogtreecommitdiffstats
path: root/common/clientapi.h
Commit message (Collapse)AuthorAge
* Replay removals.Christian Mollekopf2015-10-11
| | | | | Now we just have to avoid removing the revision too early from the resource.
* Untangled the include dependencies a bit.Christian Mollekopf2015-08-13
| | | | We no longer depend on clientapi.h from everywhere.
* Return jobs from clientapiChristian Mollekopf2015-08-07
|
* Fixed possible race conditions.Christian Mollekopf2015-07-31
| | | | | | | | | | | * Ensure we always create the thread-local event loop before any objects in the thread are created, and guarantee the done handler is immediately registered before the query can execute. * Call the callback on emitter destruction in the worker thread, where the eventloop lives, instead of the main thread. With this I can no longer reproduce any deadlocks or memory corruptions that I used to get occasionally before.
* Mode FacadeFactory to separate file, mutex protected it, and loadedChristian Mollekopf2015-07-27
| | | | | | | | resource The factory is potentially used from several queries simultaneously, so it's now mutex protected. Additionally we try to load the plugins directly in the factory.
* Warning on command failure, null debugstream to ignore messagesChristian Mollekopf2015-07-23
|
* Filter queries by available resources, and filter resources byChristian Mollekopf2015-07-08
| | | | resource-types
* We can add resources.Christian Mollekopf2015-07-08
|
* Pass instanceIdentifier to facadeChristian Mollekopf2015-07-07
|
* Remove externallyManaged hack now that we use std::shared_ptrChristian Mollekopf2015-07-07
|
* Differentiate between resource name and instance identifierChristian Mollekopf2015-06-08
|
* Moved ApplicationDomainType and BufferAdaptor to separate filesChristian Mollekopf2015-05-25
|
* Centralized type specific code.Christian Mollekopf2015-05-25
|
* Refactored query in facadeChristian Mollekopf2015-05-25
| | | | First prepare the result set, then retrieve it.
* Fixed build.Christian Mollekopf2015-05-24
|
* KAsync has moved to it's own kasync.git repositoryDan Vrátil2015-05-18
|
* Adapt to KAsync namespace changeDan Vrátil2015-05-15
|
* Guard against non available facades.Christian Mollekopf2015-05-01
|
* Synchronize API callChristian Mollekopf2015-05-01
|
* Moved resultprovider to separate file.Christian Mollekopf2015-04-30
|
* CleanupChristian Mollekopf2015-04-29
|
* Make use of Async::iterateChristian Mollekopf2015-04-27
|
* Use std::shared_ptr instead of QSharedPointer for facade factory.Christian Mollekopf2015-04-27
| | | | | Because it supports std::shared_ptr<void>, which is a nice alternative to make everything a QObject subclass for nothing.
* Fixed lifetime management of resultSet.Christian Mollekopf2015-04-27
| | | | | The resultSet remains valid for the duration of the thread. We keep the thread running until the ResultEmitter is deleted.
* Keep thread alive until the end of the query, and cleanup the resultSet.Christian Mollekopf2015-04-24
|
* Fixed build.Christian Mollekopf2015-04-19
|
* Stub for akonadi configuration.Christian Mollekopf2015-04-19
| | | | | | | | Instead of dealing with dedicated configuration facades, we'll integrate that directly into the domain interface. That way it should be rather natural for applications to i.e. query for available resources, and then configure them in the same way some other domain object would be modified.
* Async refactoring in clientapi using each executorChristian Mollekopf2015-04-19
|
* cleanupChristian Mollekopf2015-04-18
|
* Moved generic part of load to GenericFacadeChristian Mollekopf2015-04-18
|
* Use a queryrunner to execute queries.Christian Mollekopf2015-04-15
| | | | | | | | | | | | | | The queryrunner is responsible for running queries and keeping them up to date. This is required for self-updating queries. To get this to work properly the ResultProvider/emitter had to be fixed. The emitter now only lives as long as the client holds a reference to it, allowing the provider to detect when it is no longer necessary to keep the query alive (because noone is listening). In the process various lifetime issues have been fixed, that we're caused by lambdas capturing smartpointers, that then extended the lifetime of the associated objects unpredictably.
* checkpointChristian Mollekopf2015-04-10
|
* Renamed Akonadi::Domain to Akonadi::ApplicationDomainChristian Mollekopf2015-04-09
| | | | Because it's really the application domain and not the akonadi domain.
* Use QByteArray instead of QStringChristian Mollekopf2015-04-09
| | | | | All identifiers should be latin1 and we make this explicit by using QByteArray. QString is reserved for strings that can be UTF-8 or alike.
* cleanupChristian Mollekopf2015-04-08
|
* async simplificationsChristian Mollekopf2015-04-02
|
* Unbreak the clientapi.Christian Mollekopf2015-04-02
| | | | We indeed have to keep the facade alive, otherwise this starts crashing.
* Minor cleanup, less warnings.Christian Mollekopf2015-03-31
|
* Async: allow appending existing Job objects to the Job chainDan Vrátil2015-02-20
| | | | | | | | | | | | Now it's possible to do something like Job<int, int> job = createSomeJob(); auto main = Async::start<int>(....).then(job); Previously the 'job' would have to be wrapped in a ThenTask-like lambda (which is what we still do internally), but with this new syntax it's possible to append another job chain to existing chain easilly. This syntax is available for all task types.
* Added JOBAPI todo's.Christian Mollekopf2015-02-02
| | | | Work for dvratil.
* clenupChristian Mollekopf2015-01-30
|
* Shutdown command for synchronizers, used by the dummyresourcetest.Christian Mollekopf2015-01-30
| | | | | Otherwise the synchronizer keeps a Storage object alive, while the tests deletes the db. This causes subsequent writes to fail in the next test.
* Don't enlessly block in the eventloop.Christian Mollekopf2015-01-27
| | | | | The job currently finishes synchronously. If we just use the eventloop in waitForFinished that's automatically handled for us.
* A way to ensure all messages have been processed.Christian Mollekopf2015-01-25
| | | | | As queries become reactive this should become less important. We can then just wait until all results become available. For tests it is in either case useful though.
* Uid index + query using that index.Christian Mollekopf2015-01-24
| | | | ...and a couple of other fixes.
* Create buffer with values from domain objectChristian Mollekopf2015-01-21
|
* Use jobs in queries, sync works again.Christian Mollekopf2015-01-18
|
* Use jobs to track progress of write commands.Christian Mollekopf2015-01-18
|
* Made the domain adaptor actually work. We can read stuff now.Christian Mollekopf2015-01-07
|
* unifying buffer, and a better way to implement domain object adapters.Christian Mollekopf2014-12-24
|