projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
884fe1d
)
RooRepo.vala
author
Alan Knowles
<alan@roojs.com>
Mon, 24 Dec 2018 07:21:31 +0000
(15:21 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 24 Dec 2018 07:21:31 +0000
(15:21 +0800)
RooRepo.vala
patch
|
blob
|
history
diff --git
a/RooRepo.vala
b/RooRepo.vala
index
a484206
..
4444662
100644
(file)
--- a/
RooRepo.vala
+++ b/
RooRepo.vala
@@
-1,13
+1,26
@@
+
+
+static RooRepo _RooRepo ;
+
public class RooRepo : Object
{
public class RooRepo : Object
{
-
+
public string id; // not really important that they are numbers..
public string project_id;
public string description;
public string shortname;
public string id; // not really important that they are numbers..
public string project_id;
public string description;
public string shortname;
+
+ static init()
+ {
+ if (_RooRepo == null) {
+ _RooRepo = new RooRepo();
+ RooRepo.load();
+ }
+ }
+
static Gee.ArrayList<RooRepo> _repos; // only available for singletonn.
static public Gee.ArrayList<RooRepo>() {
RooRepo.init();
static Gee.ArrayList<RooRepo> _repos; // only available for singletonn.
static public Gee.ArrayList<RooRepo>() {
RooRepo.init();