[Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bb-symbol into lp:~zeitgeist/zeitgeist/bluebird

2011-08-30 Thread Siegfried Gevatter
The proposal to merge lp:~zeitgeist/zeitgeist/bb-symbol into 
lp:~zeitgeist/zeitgeist/bluebird has been updated.

Status: Needs review => Merged

For more details, see:
https://code.launchpad.net/~zeitgeist/zeitgeist/bb-symbol/+merge/69837
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bb-symbol/+merge/69837
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~zeitgeist/zeitgeist/bb-symbol into lp:~zeitgeist/zeitgeist/bluebird.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bb-symbol into lp:~zeitgeist/zeitgeist/bluebird

2011-07-29 Thread Seif Lotfy
Seif Lotfy has proposed merging lp:~zeitgeist/zeitgeist/bb-symbol into 
lp:~zeitgeist/zeitgeist/bluebird.

Requested reviews:
  Zeitgeist Framework Team (zeitgeist)

For more details, see:
https://code.launchpad.net/~zeitgeist/zeitgeist/bb-symbol/+merge/69837

adding ontology class with a Symbols class 
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bb-symbol/+merge/69837
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~zeitgeist/zeitgeist/bb-symbol into lp:~zeitgeist/zeitgeist/bluebird.
=== modified file 'src/Makefile.am'
--- src/Makefile.am	2011-07-28 18:41:01 +
+++ src/Makefile.am	2011-07-29 17:12:33 +
@@ -25,6 +25,7 @@
 	constants.vala \
 	errors.vala \
 	table-lookup.vala \
+	ontology.vala \
 	$(NULL)
 
 bluebird_LDADD = \

=== added file 'src/ontology.vala'
--- src/ontology.vala	1970-01-01 00:00:00 +
+++ src/ontology.vala	2011-07-29 17:12:33 +
@@ -0,0 +1,61 @@
+/* datamodel.vala
+ *
+ * Copyright © 2011 Collabora Ltd.
+ * By Seif Lotfy 
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program.  If not, see .
+ *
+ */
+
+public class Symbol
+{
+private HashTable children;
+public HashTable allChildren;
+public string   name { get; private set; }
+public string   uri { get; private set; }
+public string   displayName { get; private set; }
+public string   doc { get; private set; }
+
+public Symbol(string uri, string name, string displayName, string doc){
+this.name = name;
+this.uri = uri;
+this.displayName = displayName;
+this.doc = doc;
+}
+
+public GenericArray get_parents()
+{
+return new GenericArray();
+}
+
+public GenericArray get_children()
+{
+return new GenericArray();
+}
+
+public GenericArray get_all_children()
+{
+return new GenericArray();
+}
+
+public bool is_a(Symbol symbol)
+{
+return true;
+}
+
+public string to_string()
+{
+return this.uri;
+}
+}

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp