1*fce4895dSRene Gollent /* 2*fce4895dSRene Gollent * Copyright 2013, Rene Gollent, rene@gollent.com. 3*fce4895dSRene Gollent * Distributed under the terms of the MIT License. 4*fce4895dSRene Gollent */ 5*fce4895dSRene Gollent #ifndef TEAM_FILE_MANAGER_SETTINGS_H 6*fce4895dSRene Gollent #define TEAM_FILE_MANAGER_SETTINGS_H 7*fce4895dSRene Gollent 8*fce4895dSRene Gollent #include <Message.h> 9*fce4895dSRene Gollent 10*fce4895dSRene Gollent 11*fce4895dSRene Gollent class TeamFileManagerSettings { 12*fce4895dSRene Gollent public: 13*fce4895dSRene Gollent TeamFileManagerSettings(); 14*fce4895dSRene Gollent virtual ~TeamFileManagerSettings(); 15*fce4895dSRene Gollent 16*fce4895dSRene Gollent TeamFileManagerSettings& 17*fce4895dSRene Gollent operator=( 18*fce4895dSRene Gollent const TeamFileManagerSettings& other); 19*fce4895dSRene Gollent // throws std::bad_alloc; 20*fce4895dSRene Gollent 21*fce4895dSRene Gollent const char* ID() const; 22*fce4895dSRene Gollent status_t SetTo(const BMessage& archive); 23*fce4895dSRene Gollent status_t WriteTo(BMessage& archive) const; 24*fce4895dSRene Gollent 25*fce4895dSRene Gollent int32 CountSourceMappings() const; 26*fce4895dSRene Gollent status_t AddSourceMapping(const BString& sourcePath, 27*fce4895dSRene Gollent const BString& locatedPath); 28*fce4895dSRene Gollent status_t RemoveSourceMappingAt(int32 index); 29*fce4895dSRene Gollent status_t GetSourceMappingAt(int32 index, 30*fce4895dSRene Gollent BString& sourcePath, BString& locatedPath); 31*fce4895dSRene Gollent 32*fce4895dSRene Gollent virtual TeamFileManagerSettings* 33*fce4895dSRene Gollent Clone() const; 34*fce4895dSRene Gollent // throws std::bad_alloc 35*fce4895dSRene Gollent 36*fce4895dSRene Gollent private: 37*fce4895dSRene Gollent BMessage fValues; 38*fce4895dSRene Gollent }; 39*fce4895dSRene Gollent 40*fce4895dSRene Gollent 41*fce4895dSRene Gollent #endif // TEAM_FILE_MANAGER_SETTINGS_H 42