libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / preferences / repositories / RepoRow.h
blobd19c8cc357a88e88c6a199e4c42b607e62bf3a9c
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 REPO_ROW_H
9 #define REPO_ROW_H
12 #include <ColumnListView.h>
13 #include <String.h>
16 enum {
17 kEnabledColumn,
18 kNameColumn,
19 kUrlColumn
23 class RepoRow : public BRow {
24 public:
25 RepoRow(const char* repo_name,
26 const char* repo_url, bool enabled);
28 const char* Name() const { return fName.String(); }
29 void SetName(const char* name);
30 const char* Url() const { return fUrl.String(); }
31 void SetEnabled(bool enabled);
32 void RefreshEnabledField();
33 bool IsEnabled() { return fEnabled; }
34 void SetTaskState(uint32 state);
35 uint32 TaskState() { return fTaskState; }
36 void SetHasSiblings(bool hasSiblings)
37 { fHasSiblings = hasSiblings; }
38 bool HasSiblings() { return fHasSiblings; }
40 private:
41 BString fName;
42 BString fUrl;
43 bool fEnabled;
44 uint32 fTaskState;
45 bool fHasSiblings;
49 #endif