Thank you @olf and @attah , you summarised my thoughts about the development of this feature. When I implemented it, I wanted to have the most simple code possible (see the links @olf provided). I thought about using regexp as the filtering backend, but then I thought that my use case involved only exact matching and prefix matching. So that’s what I implemented.
If someone has the necessity to use a regexp matching, then, it’s quite straight forward to implement and to keep it backward compatible with existing dconf entries, one can use a prefix like regexp:^\+3956.*$
. The idea of having a library exposed by the plugin is also to hide this backend complexity and use intentional calls like filter.ignoreNumbersStartingWith()
.
About having the full capabilities exposed to the users via an UI. That would be nice, but I didn’t find something easy to use. But since it’s in dconf entries and the plugin is exposing a library to change them, one can create an advance QML app to do it.