public IUnpressedListener,
public IChangedListener,
public IRealizedListener,
- public IUnrealizedListener,
public IActivatedListener,
public IMusicControllerListener {
private:
static void sm_CbItemSelect(void *data, Evas_Object *obj, void *event_info);
- static void sm_CbGenlistItemCheckClicked(void *data, Elm_Object_Item *it, const char *emission, const char *source);
- void m_OnGenlistItemCheckClicked(Elm_Object_Item *it, const char *emission, const char *source);
-
static void sm_CbCtxtUpdate(void *dt, enum EActionType type, int lid);
void m_OnCtxtUpdate(EActionType type, int lid);
CPlaybackView(const char *pViewId) : CBaseView(pViewId),
IMouseClickedListener(this), IMouseMoveListener(this),
IPressedListener(this), IUnpressedListener(this), IChangedListener(this),
- IRealizedListener(this), IUnrealizedListener(this), IActivatedListener(this),
+ IRealizedListener(this), IActivatedListener(this),
m(0) {}
virtual ~CPlaybackView() {}
virtual void OnUnpressed(int id, Evas_Object *obj);
virtual void OnChanged(int id, Evas_Object *obj);
virtual void OnRealized(int id, Evas_Object *obj, Elm_Object_Item *item);
- virtual void OnUnrealized(int id, Evas_Object *obj, Elm_Object_Item *item);
virtual void OnActivated(int id, Evas_Object *obj, Elm_Object_Item *item);
virtual void OnComplete(void);
}
-void CPlaybackView::sm_CbGenlistItemCheckClicked(void *data, Elm_Object_Item *it, const char *emission, const char *source)
-{
- CPlaybackView *root = (CPlaybackView*)data;
- if (root)
- root->m_OnGenlistItemCheckClicked(it, emission, source);
-}
-
-
-void CPlaybackView::m_OnGenlistItemCheckClicked(Elm_Object_Item *it, const char *emission, const char *source)
-{
- SItemInfo *itinfo = NULL;
-
- if (!it || !emission)
- return;
-
- itinfo = m_FindItemInfoFromItem(m->elInfo, it);
- if (!itinfo) {
- _ERR(" no item info found ");
- return;
- }
-
- if (itinfo->edit_mode) {
- m_UpdateItemCheck(itinfo);
- m_DisableEditButtons(false);
- }
-}
-
-
void CPlaybackView::sm_CbCtxtUpdate(void *dt, enum EActionType type, int lid)
{
CPlaybackView *root = (CPlaybackView *)dt;
elm_genlist_select_mode_set(genlist, ELM_OBJECT_SELECT_MODE_ALWAYS);
elm_genlist_multi_select_set(genlist, EINA_FALSE);
- Connect(genlist, EO_PLAYLIST, TYPE_REALIZED | TYPE_UNREALIZED |
- TYPE_MOUSE_MOVE | TYPE_KEY_DOWN | TYPE_ACTIVATED);
+ Connect(genlist, EO_PLAYLIST, TYPE_REALIZED | TYPE_MOUSE_MOVE |
+ TYPE_KEY_DOWN | TYPE_ACTIVATED);
evas_object_show(genlist);
m->eoPlaylist = genlist;
switch (id) {
case EO_PLAYLIST:
{
- elm_object_item_signal_callback_add(item,
- MUSIC_SIGNAL_CHECK_CLICKED, MUSIC_PLAYBACK_VIEW,
- sm_CbGenlistItemCheckClicked, this);
-
int index = elm_genlist_item_index_get(item);
if ((index & 1) == 1)
elm_object_item_signal_emit(item,
}
-void CPlaybackView::OnUnrealized(int id, Evas_Object *obj, Elm_Object_Item *item)
-{
- switch (id) {
- case EO_PLAYLIST:
- elm_object_item_signal_callback_del(item,
- MUSIC_SIGNAL_CHECK_CLICKED, MUSIC_PLAYBACK_VIEW,
- sm_CbGenlistItemCheckClicked);
- break;
-
- default:
- break;
- }
-}
-
-
void CPlaybackView::OnActivated(int id, Evas_Object *obj, Elm_Object_Item *item)
{
switch (id) {