2010-04-24 19:10:57 +00:00
|
|
|
package com.fsck.k9.activity;
|
|
|
|
|
|
|
|
import com.fsck.k9.R;
|
|
|
|
import com.fsck.k9.mail.Flag;
|
|
|
|
|
2011-09-12 15:08:34 -07:00
|
|
|
/**
|
|
|
|
* This enum represents filtering parameters used by {@link com.fsck.k9.SearchAccount}.
|
|
|
|
*/
|
2011-02-06 17:09:48 -05:00
|
|
|
enum SearchModifier {
|
2011-09-12 15:08:34 -07:00
|
|
|
FLAGGED(R.string.flagged_modifier, new Flag[]{Flag.FLAGGED}, null),
|
|
|
|
UNREAD(R.string.unread_modifier, null, new Flag[]{Flag.SEEN});
|
2010-04-29 04:59:14 +00:00
|
|
|
|
2010-04-24 19:10:57 +00:00
|
|
|
final int resId;
|
|
|
|
final Flag[] requiredFlags;
|
|
|
|
final Flag[] forbiddenFlags;
|
2010-04-29 04:59:14 +00:00
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
SearchModifier(int nResId, Flag[] nRequiredFlags, Flag[] nForbiddenFlags) {
|
2010-04-24 19:10:57 +00:00
|
|
|
resId = nResId;
|
|
|
|
requiredFlags = nRequiredFlags;
|
|
|
|
forbiddenFlags = nForbiddenFlags;
|
|
|
|
}
|
2010-04-29 04:59:14 +00:00
|
|
|
|
2010-04-24 19:10:57 +00:00
|
|
|
}
|