Skip to content

Expose the internet-based name resolver via DBus

Akarsh Simha requested to merge user/akarsh/resolver_on_dbus into master

This MR augments the existing DBus method getObjectDataXML with the ability to use the internet-resolution feature (NameResolver, querying CDS Sesame service) via DBus.

Earlier, we had:

org.kde.kstars.getObjectDataXML <objectName: string>

returning an XML containing info about the object as known to KStars

This MR will add another method signature (while preserving the above for backward compatibility):

org.kde.kstars.getObjectDataXML <objectName: string> <fallbackToInternet: bool> <storeInternetResolved: bool>

Supplying true for fallbackToInternetand false for storing will just query CDS Sesame, get the result and "destroy" the associated CatalogObject instance. But supplying true for fallbackToInternet and true for storing will actually add the entry to the KStars database.

This can provide a fast way of ingesting a list of new objects into KStars via internet resolving:

cat list-of-objects.txt | xargs -L1 -I% qdbus org.kde.kstars /KStars org.kde.kstars.getObjectDataXML % true true

Merge request reports