aboutsummaryrefslogtreecommitdiff
path: root/plugins/openpgp/src/stream_flag.vala
blob: 8593fa9d3f07ae7bf79fab41e351b6417aec94c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using Gee;

using Xmpp;
using Xmpp;

namespace Dino.Plugins.OpenPgp {

public class Flag : XmppStreamFlag {
    public static FlagIdentity<Flag> IDENTITY = new FlagIdentity<Flag>(NS_URI, "pgp");

    public HashMap<Jid, string> key_ids = new HashMap<Jid, string>(Jid.hash_bare_func, Jid.equals_bare_func);

    public string? get_key_id(Jid jid) { return key_ids[jid]; }

    public void set_key_id(Jid jid, string key) { key_ids[jid] = key; }

    public override string get_ns() { return NS_URI; }

    public override string get_id() { return IDENTITY.id; }
}

}