projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b1b98af
)
RooRepo.vala
author
Alan Knowles
<alan@roojs.com>
Mon, 24 Dec 2018 07:28:44 +0000
(15:28 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 24 Dec 2018 07:28:44 +0000
(15:28 +0800)
RooRepo.vala
patch
|
blob
|
history
diff --git
a/RooRepo.vala
b/RooRepo.vala
index
d7bf4f4
..
f75a0ea
100644
(file)
--- a/
RooRepo.vala
+++ b/
RooRepo.vala
@@
-5,14
+5,18
@@
static RooRepo _RooRepo ;
public class RooRepo : Object
{
public class RooRepo : Object
{
- const string roourl = "https://roojs.com/admin.php/Roo";
-
+
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 below...
+ const string roourl = "https://roojs.com/admin.php/Roo";
+ static Gee.ArrayList<RooRepo> _repos; // only available for singletonn.
+ static int loadcount = 0;
+
static RooRepo init()
{
if (_RooRepo == null) {
static RooRepo init()
{
if (_RooRepo == null) {
@@
-22,8
+26,7
@@
public class RooRepo : Object
return _RooRepo;
}
return _RooRepo;
}
- static Gee.ArrayList<RooRepo> _repos; // only available for singletonn.
- static int loadcount = 0;
+
public static Gee.ArrayList<RooRepo> repos() {
RooRepo.init();
return RooRepo._repos;
public static Gee.ArrayList<RooRepo> repos() {
RooRepo.init();
return RooRepo._repos;