X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=RooProject.vala;h=d99bcd101eb7b40141f28c2ebe348266861638f2;hb=16c0c90787e727c0c69812b16f647e0530a8f120;hp=2cd0e111af254dfc379f162a1c9718ffffae7684;hpb=e8345c286beeaadac85a278b6c34cec0b296eafe;p=gitlive diff --git a/RooProject.vala b/RooProject.vala index 2cd0e111..d99bcd10 100644 --- a/RooProject.vala +++ b/RooProject.vala @@ -3,15 +3,18 @@ static RooProject _RooProject; public class RooProject : Object { + static Gee.ArrayList _projects; + static int loadcount = 0; + public static RooProject singleton() { if (_RooProject == null) { _RooProject = new RooProject(); RooProject.loadcount = 0; - RooTicket.loadProjects(); + RooProject.loadProjects(); } - return _RooTicket; + return _RooProject; } public string id; // not really important that they are numbers.. @@ -19,7 +22,7 @@ public class RooProject : Object public string name; public string type; - static Gee.ArrayList _projects; + public static Gee.ArrayList projects() { RooProject.singleton(); @@ -27,7 +30,7 @@ public class RooProject : Object return RooProject._projects; } - static public RooProject addProject(Json.Object t) + public static RooProject addProject(Json.Object t) { RooProject.singleton(); // init...