aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/IMAPFolderStatus.java
blob: b3ce5abc1618c07e9ae3c3d35350587f980628c9 (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
39
40
41
42
43
44
45
46
47
package com.libmailcore;

/** Folder status. */
public class IMAPFolderStatus extends NativeObject {
    public IMAPFolderStatus()
    {
        setupNative();
    }
    
    /** Sets the number of unseen messages. */
    public native void setUnseenCount(long unseen);
    /** Returns the number of unseen messages. */
    public native long unseenCount();
    
    /** Sets the number of messages in the folder. */
    public native void setMessageCount(long messages);
    /** Returns the number of messages in the folder. */
    public native long messageCount();
    
    /** Sets the number of recent messages. */
    public native void setRecentCount(long recent);
    /** Returns the number of recent messages. */
    public native long recentCount();
    
    /** Sets the netx uid value. */
    public native void setUidNext(long uidNext);
    /**
        Returns the message UID that will be likely used if a message is
        added to that folder.
    */
    public native long uidNext();
    
    /** Sets the UID validity */
    public native void setUidValidity(long uidValidity);
    /**
        Returns the UID validity of the folder. If that value change for a given folder path,
        it means that the uids of the messages that you may have cached are not valid any more.
    */
    public native long uidValidity();
    
    /** Sets the highest modification sequence value of the messages in the folder. */
    public native void setHighestModSeqValue(long highestModSeqValue);
    /** Returns the highest modification sequence value of the messages in the folder. */
    public native long highestModSeqValue();
    
    private native void setupNative();
}