aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src/account_settings_entry.vala
blob: 3866febef705c080a7c4f50831dcc5777730d83a (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
namespace Dino.Plugins.Omemo {

public class AccountSettingsEntry : Plugins.AccountSettingsEntry {
    private Plugin plugin;

    public AccountSettingsEntry(Plugin plugin) {
        this.plugin = plugin;
    }

    public override string id { get {
        return "omemo_identity_key";
    }}

    public override string name { get {
        return "OMEMO";
    }}

    public override Plugins.AccountSettingsWidget? get_widget(WidgetType type) {
        if (type == WidgetType.GTK) {
            return new AccountSettingWidget(plugin);
        }
        return null;
    }
}

}