eive-obsw/mission/memory/SdCardMountedIF.h

22 lines
583 B
C
Raw Normal View History

2022-03-01 17:41:58 +01:00
#ifndef MISSION_MEMORY_SDCARDMOUNTERIF_H_
#define MISSION_MEMORY_SDCARDMOUNTERIF_H_
2022-09-12 17:23:43 +02:00
#include <optional>
2022-03-01 17:41:58 +01:00
#include <string>
#include "definitions.h"
class SdCardMountedIF {
public:
virtual ~SdCardMountedIF(){};
2022-09-12 17:00:49 +02:00
virtual const std::string& getCurrentMountPrefix() const = 0;
2022-09-29 13:53:42 +02:00
virtual bool isSdCardUsable(sd::SdCard sdCard) = 0;
2022-09-12 17:23:43 +02:00
virtual std::optional<sd::SdCard> getPreferredSdCard() const = 0;
2022-05-24 00:20:23 +02:00
virtual void setActiveSdCard(sd::SdCard sdCard) = 0;
2022-09-12 17:23:43 +02:00
virtual std::optional<sd::SdCard> getActiveSdCard() const = 0;
2022-05-24 00:52:08 +02:00
2022-03-01 17:41:58 +01:00
private:
};
#endif /* MISSION_MEMORY_SDCARDMOUNTERIF_H_ */