RemoteDrawingEngine: Reduce RP_READ_BITMAP result timeout.
[haiku.git] / src / preferences / repositories / RepositoriesSettings.h
blobcea7a46de202dff6dbfd43a79cc6d5f0be85cb2e
1 /*
2 * Copyright 2017 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Brian Hill
7 */
8 #ifndef REPOSITORIES_SETTINGS_H
9 #define REPOSITORIES_SETTINGS_H
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>
21 class RepositoriesSettings {
22 public:
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);
31 private:
32 BMessage _ReadFromFile();
33 status_t _SaveToFile(BMessage settings);
35 BPath fFilePath;
36 BFile fFile;
37 status_t fInitStatus;
41 #endif