1/* 2 * Copyright 2017 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Brian Hill 7 */ 8#ifndef REPOSITORIES_SETTINGS_H 9#define REPOSITORIES_SETTINGS_H 10 11 12#include <File.h> 13#include <Message.h> 14#include <Path.h> 15#include <Point.h> 16#include <Rect.h> 17#include <String.h> 18#include <StringList.h> 19 20 21class RepositoriesSettings { 22public: 23 RepositoriesSettings(); 24 BRect GetFrame(); 25 void SetFrame(BRect frame); 26 status_t GetRepositories(int32& repoCount, 27 BStringList& nameList, BStringList& urlList); 28 void SetRepositories(BStringList& nameList, 29 BStringList& urlList); 30 31private: 32 BMessage _ReadFromFile(); 33 status_t _SaveToFile(BMessage settings); 34 35 BPath fFilePath; 36 BFile fFile; 37 status_t fInitStatus; 38}; 39 40 41#endif 42