RFC WIP support OSX style device icons system for dns-sd discoveries
Needs ReviewPublic

Authored by sitter on Feb 25 2020, 9:50 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

looking for some general thoughts on the concept

osx and newer sambas send model data in the dnssd entires. this allows
osx to show fitting device icons based on the remote (and CRT icons for
services discovered through other means than dns-sd).
e.g. if you share something from your macbook your imac will show a
macbook/laptop icon instead of a generic computer screen.
meanwhile machines found over SMB1 (and I guess wsdiscovery) are shown
with CRT screens and a BSOD.

this prototype would essentially allow us to have a similar level of polish,
albeit a bit dependent on samba since samba would need to have a suitable model
set. for example tuxedo could set laptop-foobar in their smb.conf and a suitable
icon set on clients could show a laptop or even foobar specific icon instead of the
stock one.

so, if we know the model we'd set
network-server-model-$modelName
e.g.
network-server-model-laptop-foobar
and an icon theme would be able to provide regular icon fallbacks
to theme this.

network-server-model-laptop-foobar
as specific model icon (the foobar type laptop from $vendor)
network-server-model-laptop
as generic model icon if model isn't available
network-server
as generic server icon if the specific ones are not available

on the WSD side we could also give WSD discovered hosts a WSD icon *cough CRT screen* ;)
in point of fact, I am almost certain that I've seen something like _device-info,
albeit much less precise, in one of the device profile SOAP specs. IIRC
on the WSD side we can at least tell apart printers from actual computers, not sure
if that is worth the headache of having to deal with more soap though *shrug*

Test Plan

have an osx machine on the network

Diff Detail

Repository
R320 KIO Extras
Branch
wsd-model
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 22888
Build 22906: arc lint + arc unit
sitter created this revision.Feb 25 2020, 9:50 AM
Restricted Application added projects: Dolphin, Frameworks. · View Herald TranscriptFeb 25 2020, 9:50 AM
Restricted Application added subscribers: kfm-devel, kde-frameworks-devel. · View Herald Transcript
sitter requested review of this revision.Feb 25 2020, 9:50 AM