1 /* 2 * Copyright 2013, Haiku, Inc. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _PACKAGE__USER_SETTINGS_FILE_INFO_H_ 6 #define _PACKAGE__USER_SETTINGS_FILE_INFO_H_ 7 8 9 #include <String.h> 10 11 12 namespace BPackageKit { 13 14 15 namespace BHPKG { 16 struct BUserSettingsFileInfoData; 17 } 18 19 20 class BUserSettingsFileInfo { 21 public: 22 BUserSettingsFileInfo(); 23 BUserSettingsFileInfo( 24 const BHPKG::BUserSettingsFileInfoData& 25 infoData); 26 BUserSettingsFileInfo(const BString& path, 27 const BString& templatePath = BString()); 28 BUserSettingsFileInfo(const BString& path, 29 bool isDirectory); 30 ~BUserSettingsFileInfo(); 31 32 status_t InitCheck() const; 33 34 const BString& Path() const; 35 const BString& TemplatePath() const; 36 bool IsDirectory() const; 37 38 void SetTo(const BString& path, 39 const BString& templatePath = BString()); 40 void SetTo(const BString& path, 41 bool isDirectory); 42 43 private: 44 BString fPath; 45 BString fTemplatePath; 46 bool fIsDirectory; 47 }; 48 49 50 } // namespace BPackageKit 51 52 53 #endif // _PACKAGE__USER_SETTINGS_FILE_INFO_H_ 54