mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-26 23:51:52 -05:00
23 lines
623 B
Java
23 lines
623 B
Java
package com.fsck.k9.activity;
|
|
|
|
import com.fsck.k9.R;
|
|
import com.fsck.k9.mail.Flag;
|
|
|
|
/**
|
|
* This enum represents filtering parameters used by {@link com.fsck.k9.SearchAccount}.
|
|
*/
|
|
enum SearchModifier {
|
|
FLAGGED(R.string.flagged_modifier, new Flag[]{Flag.FLAGGED}, null),
|
|
UNREAD(R.string.unread_modifier, null, new Flag[]{Flag.SEEN});
|
|
|
|
final int resId;
|
|
final Flag[] requiredFlags;
|
|
final Flag[] forbiddenFlags;
|
|
|
|
SearchModifier(int nResId, Flag[] nRequiredFlags, Flag[] nForbiddenFlags) {
|
|
resId = nResId;
|
|
requiredFlags = nRequiredFlags;
|
|
forbiddenFlags = nForbiddenFlags;
|
|
}
|
|
|
|
} |