2 // C++ Interface: mediadevicemanager
4 // Description: Controls device/medium object handling, providing
5 // helper functions for other objects
8 // Author: Jeff Mitchell <kde-dev@emailgoeshere.com>, (C) 2006
10 // Copyright: See COPYING file that comes with this distribution
15 #ifndef AMAROK_MEDIA_DEVICE_MANAGER_H
16 #define AMAROK_MEDIA_DEVICE_MANAGER_H
22 typedef QMap
<QString
, Medium
*> MediumMap
;
24 class MediaDeviceManager
: public QObject
27 //static const uint GENERIC = 0;
28 //static const uint APPLE = 1;
29 //static const uint IFP = 2;
34 ~MediaDeviceManager();
35 static MediaDeviceManager
*instance();
37 Medium
* getDevice( QString name
);
38 MediumMap
getMediumMap() { return m_mediumMap
; }
40 void addManualDevice( Medium
* added
);
41 void removeManualDevice( Medium
* removed
);
45 void mediumAdded( const Medium
*, QString
);
46 void mediumChanged( const Medium
*, QString
);
47 void mediumRemoved( const Medium
*, QString
);
50 void slotMediumAdded( const Medium
*, QString
);
51 void slotMediumChanged( const Medium
*, QString
);
52 void slotMediumRemoved( const Medium
*, QString
);
59 MediumMap m_mediumMap
;