2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
27 struct SCtxtPlaylistItem {
33 SOURCE_TYPE_NONE = -1,
55 PLAY_STATUS_INITIAL = -1,
62 SHUFFLE_STATUS_OFF = 0,
67 REPEAT_STATUS_NONE = 0,
87 LIST_TYPE_FOLDER_SONG,
91 LIST_TYPE_PLAYLISTS_SONG
108 CONTEXT_TYPE_PLAYLIST,
109 CONTEXT_TYPE_PLAYSONG
120 ACTION_TYPE_REMOVESONG,
123 struct SContentInfo {
124 enum EContextType type;
125 enum EPlayStatus status;
127 void (*update)(void *data, enum EActionType type, int id);
128 void (*close)(void *data);
138 CAT_TYPE_PLAYLIST_NEW
142 SContentInfo *ctxtInfo;
144 const char *layoutId;
145 const char *keyEvent;
148 // this values should be defined
149 #define KEY_PLAY "Play"
150 #define KEY_ENTER "Enter"
151 #define KEY_NEXT "Next"
152 #define KEY_PREVIOUS "Previous"
153 #define KEY_EXIT "Exit"
154 #define KEY_BACK "Escape"
155 #define KEY_MENU "Super_L"
157 #define SORT_BY_ARTIST_AZ "SORT_BY_ARTIST_AZ"
158 #define SORT_BY_ARTIST_ZA "SORT_BY_ARTIST_ZA"
159 #define SORT_BY_ALBUM_AZ "SORT_BY_ALBUM_AZ"
160 #define SORT_BY_ALBUM_ZA "SORT_BY_ALBUM_ZA"
163 #endif /* __COMMON_H__ */