aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/POPMessageInfo.java
blob: 70230fe75442b6276d81f76e6161a8bdeb70ec9c (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
package com.libmailcore;

/** Info about a message. */
public class POPMessageInfo extends NativeObject {
    /** Constructor. */
    public POPMessageInfo()
    {
        setupNative();
    }
    
    /** Sets the index of the message. */
    public native void setIndex(int index);
    /** Returns the index of the message, valid during the POP session. */
    public native int index();
    
    /** Sets the size of the message. */
    public native void setSize(long size);
    /** Returns the size of the message. */
    public native long size();
    
    /** Sets the unique identifier of the message. */
    public native void setUid(String uid);
    /** Returns the unique identifier of the message. */
    public native String uid();
    
    private native void setupNative();
}