<table><tr><td style="">sitter created this revision.<br />Herald added projects: Dolphin, Frameworks.<br />Herald added subscribers: kfm-devel, kde-frameworks-devel.<br />sitter requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D27642">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>looking for some general thoughts on the concept</p>

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

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

<p>so, if we know the model we'd set<br />
<tt style="background: #ebebeb; font-size: 13px;">network-server-model-$modelName</tt><br />
e.g.<br />
<tt style="background: #ebebeb; font-size: 13px;">network-server-model-laptop-foobar</tt><br />
and an icon theme would be able to provide regular icon fallbacks<br />
to theme this.</p>

<p><tt style="background: #ebebeb; font-size: 13px;">network-server-model-laptop-foobar</tt><br />
as specific model icon (the foobar type laptop from $vendor)<br />
<tt style="background: #ebebeb; font-size: 13px;">network-server-model-laptop</tt><br />
as generic model icon if model isn't available<br />
<tt style="background: #ebebeb; font-size: 13px;">network-server</tt><br />
as generic server icon if the specific ones are not available</p>

<p>on the WSD side we could also give WSD discovered hosts a WSD icon *cough CRT screen* ;)<br />
in point of fact, I am almost certain that I've seen something like _device-info,<br />
albeit much less precise, in one of the device profile SOAP specs. IIRC<br />
on the WSD side we can at least tell apart printers from actual computers, not sure<br />
if that is worth the headache of having to deal with more soap though *shrug*</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>have an osx machine on the network</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R320 KIO Extras</div></div></div><br /><div><strong>BRANCH</strong><div><div>wsd-model</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27642">https://phabricator.kde.org/D27642</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>smb/dnssddiscoverer.cpp<br />
smb/dnssddiscoverer.h</div></div></div><br /><div><strong>To: </strong>sitter<br /><strong>Cc: </strong>kde-frameworks-devel, ngraham, kfm-devel, broulik, pberestov, iasensio, fprice, LeGast00n, cblack, MrPepe, fbampaloukas, alexde, GB_2, Codezela, feverfew, meven, michaelh, spoorun, navarromorales, firef, andrebarros, bruns, emmanuelp, mikesomov<br /></div>