Purpose: API Clean up or use contenthub instead
Open, Needs TriagePublic

Description

The API is super generic, it's all strings and json objects.

There's no proper way to share text, just an Array of URLs, etc.

It needs some serious cleanup.

Apparently it needs to stay generic for Android and what not but there should still be some more higher-level convenience API for common stuff like sharing a certain file, some URL, or plain text.

broulik created this task.Nov 23 2019, 5:08 PM
vkrause renamed this task from API Clean up to Purpose: API Clean up.Nov 23 2019, 5:40 PM
mart renamed this task from Purpose: API Clean up to Purpose: API Clean up or use contenthub instead.Sep 8 2020, 9:35 AM
alex added a subscriber: alex.Sep 6 2021, 6:38 PM

Could it make sense to introduce a KPluginMetaData like API? Maybe where the class directly extends a QJsonObject and only provides typesafe getters/setters?

apol added a subscriber: apol.Sep 21 2021, 10:47 PM

It could make sense to provide façade interfaces to do the common things the different plugin types allow.

This could be generated from the ./src/plugins/*PluginType.json files.

alex added a comment.Sep 22 2021, 5:09 AM

Would you like separate classes for the inbound/outbound args and the different types? Personally I would say that one class is enough for the different usecases.