Developer FAQ

Backends should send status signals...
Finished() after ErrorCode()...

The following sections explain frequently asked questions from people creating thier own backend. This list is not exhaustive, but please ask before adding to it.

Backends should send status signals...

If your backend does not set status signals you will get the following dialog:

For every transaction, you need to tell the datemon what the backend is doing. You need to add to your backend:

  • For python: self.status(STATUS_QUERY)

  • For compiled C/C++: pk_backend_set_status (backend, PK_STATUS_ENUM_QUERY);

You can send as many status calls as you need as the transaction progresses. The more calls you send, the more the UI will reflect what is being done, for instance, showing a downloading icon when PK_STATUS_ENUM_DOWNLOAD is used.