summaryrefslogtreecommitdiffstats
path: root/src/gui/Contact.vala
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-06-21 23:12:44 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-06-21 23:12:44 +0200
commitb9145a8161071bee25c6c1c026fbc2381bdfa0bb (patch)
treec4bedf170c6d6cb110c37086b9d864ac8e80522e /src/gui/Contact.vala
parent0671f09eb9c44aae49bb438a19a1de3abd1c0202 (diff)
downloadephraim-b9145a8161071bee25c6c1c026fbc2381bdfa0bb.tar
ephraim-b9145a8161071bee25c6c1c026fbc2381bdfa0bb.zip
Show roster
Diffstat (limited to 'src/gui/Contact.vala')
-rw-r--r--src/gui/Contact.vala24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gui/Contact.vala b/src/gui/Contact.vala
new file mode 100644
index 0000000..2eb40ae
--- /dev/null
+++ b/src/gui/Contact.vala
@@ -0,0 +1,24 @@
+public class Contact : Object {
+ public enum Show {
+ ONLINE, AWAY, CHAT, DND, XA, UNDEFINED
+ }
+
+ public enum Subscription {
+ BOTH
+ }
+
+ public Contact(string jid0) {
+ Object(jid: jid0);
+ }
+
+ public class Resource : Object {
+ public int priority {get; construct;}
+ public Show show {get; construct;}
+ public string status {get; construct;}
+ }
+
+ public string jid {get; construct;}
+ public Subscription subscription {get; set;}
+ public string name {get; set;}
+ public Gee.HashMap<string, Resource> resources {get; private set;}
+}