Revision 912095

Go back to digest for 18th January 2009

Other in Multimedia

Alejandro Daniel Wainzinger committed changes in /trunk/extragear/multimedia/amarok/src:

First step in a series to generalize Media Device code, to make adding new Media Device support easier.
This work is far from done (barely started).

- Device detection will be handled by Factory via a MediaDeviceInfo object, passed to MediaDeviceMonitor, which forwards it to whoever needs it (e.g. MediaDevicesApplet).
- This also allows embedding of device-specific information for applet display (e.g. battery %, free space %)
- New devices to be supported inherit classes in mediadevicecollection which abstract core functionality of a media device.

The MediaDeviceCollection stuff itself is turned into a lib.

Note: possibly merging MediaDeviceCache and MediaDeviceMonitor in a future step, since detection is moved to Factory.

File Changes

Added 5 files
  • /trunk/extragear/multimedia/amarok/src/collection/mediadevicecollection/support
  •   /IpodDeviceInfo.cpp
  •   /IpodDeviceInfo.h
  •   /MediaDeviceInfo.cpp
  •   /MediaDeviceInfo.h
Modified 10 files
  • /trunk/extragear/multimedia/amarok/src
  •   /CMakeLists.txt
  •   /MediaDeviceMonitor.h
  •   /collection/CMakeLists.txt
  •   /collection/ipodcollection/CMakeLists.txt
  •   /collection/ipodcollection/IpodCollection.cpp
  •   /collection/ipodcollection/IpodCollection.h
  •   /collection/mediadevicecollection/CMakeLists.txt
  •   /collection/mediadevicecollection/MediaDeviceCollection.cpp
  •   /collection/mediadevicecollection/MediaDeviceCollection.h
  •   /collection/mtpcollection/CMakeLists.txt
15 files changed in total