60 lines
1.7 KiB
C++
60 lines
1.7 KiB
C++
/*******************************************************************************
|
|
* *
|
|
* Société de Transports de Montréal. *
|
|
* 2012 - 2013 *
|
|
* *
|
|
* Projet Zones Tests *
|
|
* *
|
|
* *
|
|
* *
|
|
*******************************************************************************/
|
|
/*
|
|
Description:
|
|
Description du fichier si nécessaire.
|
|
|
|
*/
|
|
|
|
/* ************************************************************************** */
|
|
/* Revision:
|
|
### YYYMMDD JFM
|
|
Verision d'origine.
|
|
|
|
### YYYYMMDD Description du besoin ou du bug
|
|
Description du changement.
|
|
*/
|
|
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef USBDRIVEINTERFACE_H
|
|
#define USBDRIVEINTERFACE_H
|
|
#include "GlobalDefine.h"
|
|
#include <QTimer>
|
|
#include <QString>
|
|
|
|
class CUSBDriveInterface : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
CUSBDriveInterface();
|
|
~CUSBDriveInterface();
|
|
|
|
bool IsDriveDetected();
|
|
QString GetDrivePath();
|
|
unsigned int Start();
|
|
unsigned int EmulateDrivePresence(bool DrivePresent);
|
|
unsigned int EnableDriveEmulation(bool Enabled);
|
|
|
|
private:
|
|
|
|
QTimer *mDrivePresenceUpdateTimer;
|
|
bool mDriveDetected;
|
|
QString mDrivePath;
|
|
bool mDriveEmulationEnabled;
|
|
|
|
|
|
public slots:
|
|
void CheckDrivePresence();
|
|
};
|
|
|
|
#endif // USBDRIVEINTERFACE_H
|