aboutsummaryrefslogtreecommitdiff
path: root/main/src/view_model/preferences_row.vala
blob: 624be6e607fd6521d0e11ff380661df8b310e3de (plain) (blame)
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
using Dino.Entities;
using Xmpp;
using Xmpp.Xep;
using Gee;
using Gtk;

namespace Dino.Ui.ViewModel.PreferencesRow {
    public abstract class Any : Object {
        public string title { 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 Gee.List<string> items = new ArrayList<string>();
        public int active_item { get; set; }
    }

    public class WidgetDeprecated : Any {
        public Widget widget;
    }
}