aboutsummaryrefslogtreecommitdiff
path: root/plugins/openpgp/src/account_settings_entry.vala
blob: 75220c305e8bb68a5a70df6d941c69ac2ce06132 (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
namespace Dino.Plugins.OpenPgp {

public class AccountSettingsEntry : Plugins.AccountSettingsEntry {

    private Plugin plugin;

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

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

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

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

}