* Copyright 2013, Rene Gollent, rene@gollent.com.
* Distributed under the terms of the MIT License.
*/
#ifndef TEAM_FILE_MANAGER_SETTINGS_H
#define TEAM_FILE_MANAGER_SETTINGS_H
#include <Message.h>
class TeamFileManagerSettings {
public:
TeamFileManagerSettings();
virtual ~TeamFileManagerSettings();
TeamFileManagerSettings&
operator=(
const TeamFileManagerSettings& other);
const char* ID() const;
status_t SetTo(const BMessage& archive);
status_t WriteTo(BMessage& archive) const;
int32 CountSourceMappings() const;
status_t AddSourceMapping(const BString& sourcePath,
const BString& locatedPath);
status_t RemoveSourceMappingAt(int32 index);
status_t GetSourceMappingAt(int32 index,
BString& sourcePath, BString& locatedPath);
virtual TeamFileManagerSettings*
Clone() const;
private:
BMessage fValues;
};
#endif