View Javadoc

1   /***
2    *     Ambient - A music player for the Android platform
3    Copyright (C) 2007 Martin Vysny
4    
5    This program is free software: you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation, either version 3 of the License, or
8    (at your option) any later version.
9    
10   This program is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   GNU General Public License for more details.
14  
15   You should have received a copy of the GNU General Public License
16   along with this program.  If not, see <http://www.gnu.org/licenses/>.
17   */
18  package sk.baka.ambient.collection;
19  
20  import sk.baka.ambient.R;
21  
22  /***
23   * Enumerates all criteria fields.
24   * 
25   * @author Martin Vysny
26   */
27  public enum CategoryEnum {
28  	/***
29  	 * Search by track title.
30  	 */
31  	Title(R.string.title),
32  	/***
33  	 * Search by track artist.
34  	 */
35  	Artist(R.string.artist),
36  	/***
37  	 * Search by track album.
38  	 */
39  	Album(R.string.album),
40  	/***
41  	 * Search by year released.
42  	 */
43  	@Deprecated
44  	YearReleased(R.string.yearReleased),
45  	/***
46  	 * Search by genre.
47  	 */
48  	Genre(R.string.genre),
49  	/***
50  	 * The track origin.
51  	 */
52  	@Deprecated
53  	Origin(R.string.origin);
54  	/***
55  	 * The criteria field displayable name.
56  	 */
57  	public final int displayableNameId;
58  
59  	private CategoryEnum(
60  			final int displayableNameId) {
61  		this.displayableNameId = displayableNameId;
62  	}
63  }