eive-obsw/mission/memory/SdCardMountedIF.h

22 lines
591 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(){};
2023-02-22 18:06:34 +01:00
virtual const char* getCurrentMountPrefix() const = 0;
2022-10-25 11:22:31 +02:00
virtual bool isSdCardUsable(std::optional<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_ */