2 * Copyright 2013, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
5 #ifndef TEAM_FILE_MANAGER_SETTINGS_H
6 #define TEAM_FILE_MANAGER_SETTINGS_H
11 class TeamFileManagerSettings
{
13 TeamFileManagerSettings();
14 virtual ~TeamFileManagerSettings();
16 TeamFileManagerSettings
&
18 const TeamFileManagerSettings
& other
);
19 // throws std::bad_alloc;
21 const char* ID() const;
22 status_t
SetTo(const BMessage
& archive
);
23 status_t
WriteTo(BMessage
& archive
) const;
25 int32
CountSourceMappings() const;
26 status_t
AddSourceMapping(const BString
& sourcePath
,
27 const BString
& locatedPath
);
28 status_t
RemoveSourceMappingAt(int32 index
);
29 status_t
GetSourceMappingAt(int32 index
,
30 BString
& sourcePath
, BString
& locatedPath
);
32 virtual TeamFileManagerSettings
*
34 // throws std::bad_alloc
41 #endif // TEAM_FILE_MANAGER_SETTINGS_H