aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/IMAPIdentity.java
blob: 5a3352aa7c9b2a7521c67583e5a77f79fa2f7fa1 (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
package com.libmailcore;

import java.util.List;

/** Identity of an IMAP client or an IMAP server. */
public class IMAPIdentity extends NativeObject {
    public IMAPIdentity()
    {
        setupNative();
    }

    /** Sets the vendor. */
    public native void setVendor(String vendor);
    /** Returns the vendor. */
    public native String vendor();
    
    /** Sets the name of the software. */
    public native void setName(String name);
    /** Returns the name of the software. */
    public native String name();
    
    /** Sets the version of the software. */
    public native void setVersion(String version);
    /** Returns the version of the software. */
    public native String version();

    /** Clear infos. */
    public native void removeAllInfos();
    
    /** Returns all infos names. */
    public native List<String> allInfoKeys();
    /** Returns a value for a name of an info. */
    public native String infoForKey(String key);
    /** Sets a value of an info. */
    public native void setInfoForKey(String key, String value);
    
    private native void setupNative();
}