blob: d0f64979b16589fa4da76e9d95e90606f75e465d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
using Dino.Entities;
using Xmpp;
using Xmpp.Xep;
using Gee;
namespace Dino.Ui.ViewModel.PreferencesRow {
public abstract class Any : Object {
public string title { get; set; }
public bool visible { get; set; default=true; }
public string? media_type { get; set; }
public string? media_uri { get; set; }
}
public class Text : Any {
public string text { get; set; }
}
public class Entry : Any {
public signal void changed();
public string text { get; set; }
}
public class PrivateText : Any {
public signal void changed();
public string text { get; set; }
}
public class Toggle : Any {
public string subtitle { get; set; }
public bool state { get; set; }
}
public class ComboBox : Any {
public string subtitle { get; set; }
public Gee.List<string> items = new ArrayList<string>();
public int active_item { get; set; }
}
public class Button : Any {
public signal void clicked();
public string subtitle { get; set; }
public string button_text { get; set; }
}
}
|