2010-04-24 15:10:57 -04:00
|
|
|
/**
|
2010-04-29 00:59:14 -04:00
|
|
|
*
|
2010-04-24 15:10:57 -04:00
|
|
|
*/
|
|
|
|
package com.fsck.k9.activity;
|
|
|
|
|
|
|
|
import com.fsck.k9.R;
|
|
|
|
import com.fsck.k9.mail.Flag;
|
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
enum SearchModifier {
|
2010-04-29 00:59:14 -04:00
|
|
|
FLAGGED(R.string.flagged_modifier, new Flag[] { Flag.FLAGGED}, null), UNREAD(R.string.unread_modifier, null, new Flag[] { Flag.SEEN});
|
|
|
|
|
2010-04-24 15:10:57 -04:00
|
|
|
final int resId;
|
|
|
|
final Flag[] requiredFlags;
|
|
|
|
final Flag[] forbiddenFlags;
|
2010-04-29 00:59:14 -04:00
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
SearchModifier(int nResId, Flag[] nRequiredFlags, Flag[] nForbiddenFlags) {
|
2010-04-24 15:10:57 -04:00
|
|
|
resId = nResId;
|
|
|
|
requiredFlags = nRequiredFlags;
|
|
|
|
forbiddenFlags = nForbiddenFlags;
|
|
|
|
}
|
2010-04-29 00:59:14 -04:00
|
|
|
|
2010-04-24 15:10:57 -04:00
|
|
|
}
|