00001 #ifndef MYTH_MEDIA_MONITOR_UNIX_H 00002 #define MYTH_MEDIA_MONITOR_UNIX_H 00003 00004 class MediaMonitorUnix : public MediaMonitor 00005 { 00006 public: 00007 MediaMonitorUnix(QObject* par, unsigned long interval, bool allowEject); 00008 ~MediaMonitorUnix(); 00009 00010 protected: 00011 void CheckDevices(void); 00012 void CheckDeviceNotifications(void); 00013 bool CheckFileSystemTable(void); 00014 bool CheckMountable(void); 00015 bool FindPartitions(const QString &dev, bool checkPartitions); 00016 00017 virtual bool AddDevice(MythMediaDevice* pDevice); 00018 bool AddDevice(const char* dev); 00019 bool AddDevice(struct fstab* mep); 00020 00021 QString GetDeviceFile(const QString &sysfs); 00022 00023 QStringList GetCDROMBlockDevices(void); 00024 00025 protected: 00026 int m_fifo; 00027 static const QString kUDEV_FIFO; 00028 }; 00029 00030 #endif // MYTH_MEDIA_MONITOR_H
1.5.5