#ifndef MODESTOREIF_H_ #define MODESTOREIF_H_ #include #include #include #include class ModeStoreIF { public: static const uint8_t INTERFACE_ID = MODE_STORE_IF; static const ReturnValue_t INVALID_ENTRY = MAKE_RETURN_CODE(0x02); static const ReturnValue_t TOO_MANY_ELEMENTS = MAKE_RETURN_CODE(0x03); static const ReturnValue_t CANT_STORE_EMPTY = MAKE_RETURN_CODE(0x04); virtual ~ModeStoreIF() { } virtual ReturnValue_t storeArray(ArrayList *sequence, ModeListEntry **storedFirstEntry) = 0; virtual ReturnValue_t deleteList( ModeListEntry *sequence) = 0; virtual ReturnValue_t readList( ModeListEntry *sequence, ArrayList *into) = 0; virtual uint32_t getFreeSlots() = 0; }; #endif /* MODESTOREIF_H_ */