blob: 01e859406544270d33d6d16f38fedd90a1910200 (
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;
/** Folders info such as message count, uid validity, etc. */
public class IMAPFolderInfo extends NativeObject {
public IMAPFolderInfo()
{
setupNative();
}
/**
Returns the message UID that will be likely used if a message is
added to that folder.
*/
public native long uidNext();
/** Sets the next UID value. */
public native void setUidNext(long uidNext);
/**
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 UID validity */
public native void setUidValidity(long uidValidity);
/** Returns the modification sequence value for CONDSTORE and QRESYNC. */
public native long modSequenceValue();
/** Sets the modification sequence value. */
public native void setModSequenceValue(long modSequenceValue);
/** Returns the number of messages. */
public native int messageCount();
/** Sets the number of messages. */
public native void setMessageCount(int messageCount);
/** Returns the UID of the first unseen message. */
public native long firstUnseenUid();
/** Sets the UID of the first unseen message. */
public native void setFirstUnseenUid(long firstUnseenUid);
/** Returns whether adding custom flags to messages is allowed. */
public native boolean allowsNewPermanentFlags();
/** Sets whether adding custom flags to messages is allowed. */
public native void setAllowsNewPermanentFlags(boolean allowsNewPermanentFlags);
private native void setupNative();
}
|