#ifndef __SORT_CTXPOPUP_H__
#define __SORT_CTXPOPUP_H__
-class CSortCtxPopup : public CCtxPopup {
+class CSortCtxPopup : public CContextPopup {
private:
int m_sortType;
#ifndef __SOURCE_CTXPOPUP_H__
#define __SOURCE_CTXPOPUP_H__
-class CSourceCtxPopup : public CCtxPopup {
+class CSourceCtxPopup : public CContextPopup {
private:
int m_sourceType;
class CGalleryView : public CBaseView,
IMouseClickedListener,
IMouseMoveListener, IFocusedListener,
- CMediaContentDbUpdateListener, CUsbConnectionListener {
+ CMediaContentListener, CUsbListener {
private:
struct SGalleryView *m;
static void sm_CbGetSignalFromLayout(void *cookie, int sig);
static Eina_List *sm_CbGetMediaList(void *cookie);
- static void sm_CbCtxPopupSelected(void *cookie, CCtxPopup *instance, const char *text);
- void m_OnCtxPopupSelected(CCtxPopup *instance, const char *text);
+ static void sm_CbCtxPopupSelected(void *cookie, CContextPopup *instance, const char *text);
+ void m_OnCtxPopupSelected(CContextPopup *instance, const char *text);
private:
void m_DrawNotifyPopup(const char *text);
virtual void OnMouseMove(int id, Evas *e, Evas_Object *obj, Evas_Event_Mouse_Move *ev);
virtual void OnFocused(int id, Evas_Object *obj, Elm_Object_Item *item);
virtual void OnConnect(void);
- virtual void OnUpdated(const SEntity *entity);
+ virtual void OnDbUpdated(const SEntity *entity);
};
#endif
#ifndef __SETTING_CTXPOPUP_H__
#define __SETTING_CTXPOPUP_H__
-class CSettingCtxPopup : public CCtxPopup {
+class CSettingCtxPopup : public CContextPopup {
private:
int m_slideshowSpeed;
void m_OnRotateBtnClicked(Evas_Object *obj,
const char *emission, const char *source);
- static void sm_CbCtxPopupSelected(void *cookie, CCtxPopup *instance, const char *text);
- void m_OnCtxPopupSelected(CCtxPopup *instance, const char *text);
+ static void sm_CbCtxPopupSelected(void *cookie, CContextPopup *instance, const char *text);
+ void m_OnCtxPopupSelected(CContextPopup *instance, const char *text);
static Eina_Bool sm_CbTimerTooltip(void *cookie);
Eina_Bool m_OnTimerTooltip(void);
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <ExtNameInfo.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "menudef.h"
#include "mediainfo.h"
#include "imageinfo.h"
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <ExtNameInfo.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "menudef.h"
#include "folderinfo.h"
#include "mediainfo.h"
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <media_content.h>
-#include <ExtNameInfo.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "mediainfo.h"
#include "imageinfo.h"
#include "util.h"
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <media_content.h>
-#include <ExtNameInfo.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "define.h"
#include "mediainfo.h"
#include "eventinfo.h"
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
#include <media_content_type.h>
-#include <ExtNameInfo.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "mediainfo.h"
#include "menudef.h"
#include "util.h"
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <media_content.h>
-#include <ExtNameInfo.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "mediainfo.h"
#include "videoinfo.h"
#include "util.h"
* limitations under the License.
*/
-#include <Elementary.h>
#include <appsvc.h>
-#include <app.h>
-#include <media_content.h>
+#include "dbg.h"
+#include <AppCommon.h>
+#include "i18n.h"
#include "define.h"
#include "menudef.h"
#include "util.h"
-#include "i18n.h"
-#include "AppCommon.h"
-#include "BaseApp.h"
-#include "BaseView.h"
-#include "ViewMgr.h"
-#include "BaseLayout.h"
-#include "ExtNameInfo.h"
-#include "InputHandler.h"
-#include "SortMgr.h"
-#include "MediaContentDbListener.h"
-#include "UsbConnectionListener.h"
-#include "CtxPopup.h"
#include "timeout_handler.h"
#include "mediainfo.h"
#include "mediadata.h"
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <Ecore.h>
-
+#include "dbg.h"
#include <AppCommon.h>
#include "timeout_handler.h"
-#include "dbg.h"
#define NUM_EVENT_HANDLERS 7
* limitations under the License.
*/
-#include <media_content.h>
-#include <util.h>
-#include "ExtNameInfo.h"
+#include "dbg.h"
+#include <AppCommon.h>
+#include "util.h"
#include "mediainfo.h"
#include "mediadata.h"
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <app.h>
-#include <media_content.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "util.h"
-#include <InputHandler.h>
#include "menudef.h"
#include "timeout_handler.h"
-#include "ExtNameInfo.h"
#include "mediainfo.h"
#include "videoinfo.h"
#include "mediadata.h"
#include "viewdata.h"
-#include "AppCommon.h"
-#include "BaseView.h"
-#include "ViewMgr.h"
#include "ctxtmenu_view.h"
#include "video_player.h"
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Ecore.h>
-#include <app.h>
-#include <InputHandler.h>
-#include <ExtNameInfo.h>
-#include <MediaContentDbListener.h>
-#include <UsbConnectionListener.h>
-#include <BaseView.h>
-#include <BaseLayout.h>
-#include <CtxPopup.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "SortCtxPopup.h"
#include "gallery_view.h"
#include "define.h"
void CSortCtxPopup::t_OnConfiguration(void)
{
t_SetList(sorttext, SORT_TEXT_SIZE, m_sortType,
- CCtxPopup::TOPBTN_SORT, sort_btn_id,
+ CContextPopup::TOPBTN_SORT, sort_btn_id,
POSITION_SORT_POPUP_X, POSITION_SORT_POPUP_Y,
NULL,
STYLE_BTN_HOVERTEXT, STYLE_BTN_HOVERTEXT, STYLE_BTN_HOVERTEXT);
if (!obj)
return;
- CCtxPopup::t_OnBtnClicked(obj, ev);
+ CContextPopup::t_OnBtnClicked(obj, ev);
Destroy();
}
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Ecore.h>
-#include <app.h>
-#include <InputHandler.h>
-#include <ExtNameInfo.h>
-#include <MediaContentDbListener.h>
-#include <UsbConnectionListener.h>
-#include <BaseView.h>
-#include <BaseLayout.h>
-#include <CtxPopup.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "SourceCtxPopup.h"
#include "gallery_view.h"
#include "define.h"
void CSourceCtxPopup::t_OnConfiguration(void)
{
t_SetList(sourcetext, SOURCE_TEXT_SIZE, m_sourceType,
- CCtxPopup::TOPBTN_SOURCE, source_btn_id,
+ CContextPopup::TOPBTN_SOURCE, source_btn_id,
POSITION_SOURCE_POPUP_X, POSITION_SOURCE_POPUP_Y,
NULL,
STYLE_BTN_HOVERTEXT, STYLE_BTN_HOVERTEXT, STYLE_BTN_HOVERTEXT);
if (!obj)
return;
- CCtxPopup::t_OnBtnClicked(obj, ev);
+ CContextPopup::t_OnBtnClicked(obj, ev);
Destroy();
}
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <app.h>
-#include <media_content.h>
-#include <InputHandler.h>
-#include <ExtNameInfo.h>
-#include <MediaContentDbListener.h>
-#include <UsbConnectionListener.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "util.h"
#include "menudef.h"
-#include "AppCommon.h"
-#include "BaseView.h"
-#include "ViewMgr.h"
-#include "BaseLayout.h"
-#include "LayoutMgr.h"
-#include "CtxPopup.h"
#include "gallery_view.h"
#include "layout_all.h"
#include "layout_events.h"
CViewMgr *pViewMgr;
CMediadata *pMediadata;
- CCtxPopup *pCtxPopup;
+ CContextPopup *pCtxPopup;
struct layout_data *ld;
m->transit = transit;
}
-void CGalleryView::sm_CbCtxPopupSelected(void *cookie, CCtxPopup *instance, const char *text)
+void CGalleryView::sm_CbCtxPopupSelected(void *cookie, CContextPopup *instance, const char *text)
{
CGalleryView *root = (CGalleryView *)cookie;
if (!root)
root->m_OnCtxPopupSelected(instance, text);
}
-void CGalleryView::m_OnCtxPopupSelected(CCtxPopup *instance, const char *text)
+void CGalleryView::m_OnCtxPopupSelected(CContextPopup *instance, const char *text)
{
int i;
switch (instance->Type()) {
- case CCtxPopup::TOPBTN_SORT:
+ case CContextPopup::TOPBTN_SORT:
for (i = 0; i < SORT_TEXT_SIZE; i++) {
if (!strcmp(sorttext[i], text))
break;
elm_object_text_set(m->hover_btn, text);
m_SortLayout();
break;
- case CCtxPopup::TOPBTN_SOURCE:
+ case CContextPopup::TOPBTN_SOURCE:
for (i = 0; i < SOURCE_TEXT_SIZE; i++) {
if (!strcmp(sourcetext[i], text))
break;
evas_object_data_set(m->base, PRIV_DATA, m);
- if (!CMediaContentDbUpdateListener::Create())
+ if (!CMediaContentListener::Create())
goto error;
- if (!CUsbConnectionListener::Create())
- _DBG("UsbConnectionListener creation failed");
+ if (!CUsbListener::Create())
+ _DBG("UsbListener creation failed");
if (!m_DrawItems())
goto error;
{
ASSERT(m);
- CMediaContentDbUpdateListener::Destroy();
- if (CUsbConnectionListener::FlagCreate())
- CUsbConnectionListener::Destroy();
+ CMediaContentListener::Destroy();
+ if (CUsbListener::FlagCreate())
+ CUsbListener::Destroy();
m->pMediadata->DestroyMediaList();
m_DrawNotifyPopup(_(TEXT_LOADING_MEDIA));
}
-void CGalleryView::OnUpdated(const SEntity *entity)
+void CGalleryView::OnDbUpdated(const SEntity *entity)
{
if (m->source_type == E_SOURCE_TV)
return;
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <app.h>
-#include <media_content.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "util.h"
#include "define.h"
-#include "ExtNameInfo.h"
#include "mediainfo.h"
#include "mediadata.h"
#include "imageinfo.h"
#include "videoinfo.h"
#include "viewdata.h"
#include "menudef.h"
-#include "BaseView.h"
-#include "ViewMgr.h"
-#include "InputHandler.h"
-#include "LayoutMgr.h"
-#include "BaseLayout.h"
-#include "SortMgr.h"
-#include "MediaContentDbListener.h"
-#include "UsbConnectionListener.h"
-#include "CtxPopup.h"
#include "video_player.h"
#include "gallery_view.h"
#include "layout_all.h"
#include "layout_events.h"
#include "layout_folder.h"
-#include "AppCommon.h"
#define ALL_GRID 0
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <app.h>
-#include <media_content.h>
-#include "ExtNameInfo.h"
+#include "dbg.h"
+#include <AppCommon.h>
#include "util.h"
#include "define.h"
#include "mediainfo.h"
#include "eventinfo.h"
#include "viewdata.h"
#include "menudef.h"
-#include "BaseView.h"
-#include "ViewMgr.h"
-#include "InputHandler.h"
-#include "SortMgr.h"
-#include "MediaContentDbListener.h"
-#include "UsbConnectionListener.h"
-#include "CtxPopup.h"
#include "video_player.h"
-#include "BaseLayout.h"
-#include "LayoutMgr.h"
#include "gallery_view.h"
#include "layout_all.h"
#include "layout_events.h"
-#include "AppCommon.h"
#define EVENT_GRID 0
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <app.h>
-#include <media_content.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "util.h"
#include "define.h"
-#include "ExtNameInfo.h"
#include "folderinfo.h"
#include "mediainfo.h"
#include "mediadata.h"
#include "menudef.h"
-#include "BaseView.h"
-#include "ViewMgr.h"
-#include "BaseLayout.h"
-#include "LayoutMgr.h"
-#include "InputHandler.h"
-#include "SortMgr.h"
-#include "MediaContentDbListener.h"
-#include "UsbConnectionListener.h"
-#include "CtxPopup.h"
#include "layout_all.h"
#include "layout_folder.h"
#include "gallery_view.h"
-#include "AppCommon.h"
#define FOLDER_GRID 0
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Ecore.h>
-#include <app.h>
-#include <InputHandler.h>
-#include <ExtNameInfo.h>
-#include <BaseView.h>
-#include <BaseLayout.h>
-#include <CtxPopup.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "SettingCtxPopup.h"
#include "define.h"
#include "menudef.h"
void CSettingCtxPopup::t_OnConfiguration(void)
{
t_SetList(speed_text, MAX_SPEED_BTNS, m_slideshowSpeed,
- CCtxPopup::TOPBTN_BASE, speed_btn_id,
+ CContextPopup::TOPBTN_BASE, speed_btn_id,
POSITION_SETTING_POPUP_X, POSITION_SETTING_POPUP_Y,
NULL,
STYLE_BTN_SHORTTEXT, STYLE_BTN_SHORTTEXT, STYLE_BTN_SHORTTEXT);
if (!obj)
return;
- CCtxPopup::t_OnBtnClicked(obj, ev);
+ CContextPopup::t_OnBtnClicked(obj, ev);
Destroy();
}
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <app.h>
-#include <media_content.h>
-#include "ExtNameInfo.h"
+#include "dbg.h"
+#include <AppCommon.h>
#include "util.h"
#include "menudef.h"
#include "timeout_handler.h"
#include "mediainfo.h"
#include "mediadata.h"
#include "viewdata.h"
-#include "AppCommon.h"
-#include "BaseView.h"
-#include "ViewMgr.h"
-#include "InputHandler.h"
-#include "CtxPopup.h"
#include "photoviewer_view.h"
#include "zoom_view.h"
#include "SettingCtxPopup.h"
int zoom_level;
- CCtxPopup *pCtxPopup;
+ CContextPopup *pCtxPopup;
Ecore_Timer *focus_timer;
}
void CPhotoViewerView::sm_CbCtxPopupSelected(void *cookie,
- CCtxPopup *instance, const char *text)
+ CContextPopup *instance, const char *text)
{
CPhotoViewerView *root = (CPhotoViewerView *)cookie;
if (!root)
root->m_OnCtxPopupSelected(instance, text);
}
-void CPhotoViewerView::m_OnCtxPopupSelected(CCtxPopup *instance, const char *text)
+void CPhotoViewerView::m_OnCtxPopupSelected(CContextPopup *instance, const char *text)
{
int i;
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
-#include <media_content.h>
+#include "dbg.h"
+#include <AppCommon.h>
#include "util.h"
#include "menudef.h"
#include "timeout_handler.h"
-#include "ExtNameInfo.h"
#include "mediainfo.h"
#include "mediadata.h"
-#include "AppCommon.h"
-#include "InputHandler.h"
-#include "BaseView.h"
-#include "ViewMgr.h"
#include "zoom_view.h"
#define ZOOM_VALUE_X2 0.5
* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
#include <aul.h>
-#include <media_content.h>
-#include "ExtNameInfo.h"
+#include "dbg.h"
+#include <AppCommon.h>
#include "util.h"
#include "menudef.h"
#include "mediainfo.h"