--nextPart3395907.9vKddxcabq Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 28 July 2008 23:52:35 Aaron J. Seigo wrote: > On Monday 28 July 2008, Alex Merry wrote: > > + setData(source, "Can seek", player->canSeek()); > > + setData(source, "Can set volume", player->canSetVolume()); > > > > return true; > > } > > hm.. should this be going into the Service instead? If you give me a nice API for getting that info out of a Plasma::Service=20 (without doing operation calls to see if I can do other operation calls), I= 'll=20 take it. It does seem the natural place for it. Something like bool operationValid(const QString& operation) might work (not sure about the name), but the following have to be borne in= =20 mind: * even if this returns true, the operation might still fail (bad arguments,= or the Service didn't know until it tried) * whether an operation is valid or not can change frequently. In this case, moving to the next track or starting, pausing or stopping the player can all affect the operations that can be performed. Alex =2D-=20 KDE: http://www.kde.org Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org --nextPart3395907.9vKddxcabq Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkiOUzYACgkQBRauKLutZ9Bh/QCePe2h4f3IoPnjhyAEKPLVhBuz oysAniHjJYiz1a2E//wOZE7jJ3QYIAIJ =mufY -----END PGP SIGNATURE----- --nextPart3395907.9vKddxcabq--