Header cleanup
[amarok.git] / src / mediadevicemanager.h
blobec035878ede70b26eb35062e56e09125e741134f
1 //
2 // C++ Interface: mediadevicemanager
3 //
4 // Description: Controls device/medium object handling, providing
5 // helper functions for other objects
6 //
7 //
8 // Author: Jeff Mitchell <kde-dev@emailgoeshere.com>, (C) 2006
9 //
10 // Copyright: See COPYING file that comes with this distribution
15 #ifndef AMAROK_MEDIA_DEVICE_MANAGER_H
16 #define AMAROK_MEDIA_DEVICE_MANAGER_H
18 #include "medium.h"
20 #include <qmap.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;
31 Q_OBJECT
32 public:
33 MediaDeviceManager();
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 );
44 signals:
45 void mediumAdded( const Medium*, QString );
46 void mediumChanged( const Medium*, QString );
47 void mediumRemoved( const Medium*, QString );
49 public slots:
50 void slotMediumAdded( const Medium*, QString );
51 void slotMediumChanged( const Medium*, QString );
52 void slotMediumRemoved( const Medium*, QString );
54 private slots:
55 void reinitDevices();
57 private:
59 MediumMap m_mediumMap;
63 #endif