RooRepo.vala
[gitlive] / RooRepo.vala
index e69de29..8dfbfb0 100644 (file)
@@ -0,0 +1,32 @@
+
+
+static RooRepo _RooRepo ;
+
+public class RooRepo : Object 
+{
+       
+
+       public string  id; // not really important that they are numbers..
+       public string project_id;
+       public string description;
+       public string shortname;
+       
+       
+       static RooRepo init()
+       {
+               if (_RooRepo == null) {
+                       _RooRepo = new RooRepo();
+                       RooRepo.load();
+               }
+               return _RooRepo;
+       }
+       
+       static Gee.ArrayList<RooRepo> _repos; // only available for singletonn.         
+       static public  Gee.ArrayList<RooRepo>() {
+               RooRepo.init();
+               return RooRepo._repos;
+       }
+       
+
+}