Fix build error due to changing app-common
[profile/tv/apps/native/filebrowser.git] / src / views / BaseView / FbBaseView.cpp
index e2bd075..22b1bdb 100644 (file)
 #include <Eina.h>
 #include <Ecore.h>
 #include <aul.h>
-#include "i18n.h"
 #include "define.h"
-
-#include "AppCommon.h"
-#include "ExtNameInfo.h"
 #include "common.h"
 #include "dbg.h"
-#include <MediaContentDbListener.h>
-#include <UsbConnectionListener.h>
-#include "Popup.h"
-#include "InputHandler.h"
-
-#include <CtxPopup.h>
-
-#include <BaseView.h>
+#include <AppCommon.h>
 #include "FbBaseView.h"
+#include "i18n.h"
 #include "Info.h"
-
+#include "Popup.h"
 #include "SourceCtxPopup.h"
 #include "SortCtxPopup.h"
-
-#include <ViewMgr.h>
-#include <LayoutMgr.h>
-#include <BaseLayout.h>
 #include "FbAllLayout.h"
 #include "FbPhotoLayout.h"
 #include "FbVideoLayout.h"
@@ -109,7 +95,7 @@ struct SFbBaseView {
        Evas_Object *eoBtnSource;
        Evas_Object *eoBtnSort;
 
-       CCtxPopup   *pCtxPopup;
+       CContextPopup   *pCtxPopup;
        CPopup      *pPopup;
 
        CLayoutMgr     *pLayoutMgr;
@@ -182,7 +168,7 @@ struct SFbBaseView {
        private:
                SFbBaseView *m;
        private:
-               static void sm_CbCtxPopupSelected(void* cookie, CCtxPopup* instance, const char* text)
+               static void sm_CbCtxPopupSelected(void* cookie, CContextPopup* instance, const char* text)
                {
                        SFbBaseView* m = (SFbBaseView*)cookie;
                        if (!m)
@@ -190,7 +176,7 @@ struct SFbBaseView {
 
                        _DBG(" instance->Type(): %d", instance->Type());
                        switch (instance->Type()) {
-                       case CCtxPopup::TOPBTN_SORT:
+                       case CContextPopup::TOPBTN_SORT:
                                elm_object_text_set(m->eoBtnSort, text);
                                switch(m->curLayoutId)
                                {
@@ -210,7 +196,7 @@ struct SFbBaseView {
                                m->pLayoutMgr->Show(_get_layout_id(m->curLayoutId));
                                break;
 
-                       case CCtxPopup::TOPBTN_SOURCE:
+                       case CContextPopup::TOPBTN_SOURCE:
                                elm_object_text_set(m->eoBtnSource, text);
                                switch(m->curLayoutId)
                                {
@@ -601,10 +587,10 @@ bool CFbBaseView::Create(void *data)
                _CHECK(m->pLayoutMgr->AddLayout(m->pFbVideoLayout))
                _CHECK(m->pLayoutMgr->AddLayout(m->pFbMusicLayout))
                _COMMAND{
-                       if(!CUsbConnectionListener::Create())
-                               _ERR("Fail to create CUsbConnectionListener()");
-                       if(!CMediaContentDbUpdateListener::Create())
-                               _ERR("Fail to create CMediaContentDbUpdateListener()");
+                       if(!CUsbListener::Create())
+                               _ERR("Fail to create CUsbListener()");
+                       if(!CMediaContentListener::Create())
+                               _ERR("Fail to create CMediaContentListener()");
                }
                _WHEN_SUCCESS{}
 
@@ -646,10 +632,10 @@ void CFbBaseView::Destroy(void)
 
        CBaseView::Destroy();
 
-       if(CMediaContentDbUpdateListener::FlagCreate())
-               CMediaContentDbUpdateListener::Destroy();
-       if(CUsbConnectionListener::FlagCreate())
-               CUsbConnectionListener::Destroy();
+       if(CMediaContentListener::FlagCreate())
+               CMediaContentListener::Destroy();
+       if(CUsbListener::FlagCreate())
+               CUsbListener::Destroy();
 
        m->pLayoutMgr->RemoveLayout(m->pFbMusicLayout);
        m->pFbMusicLayout->Destroy();
@@ -709,7 +695,7 @@ void CFbBaseView::OnStatusChanged(SUsbHostDeviceInfo *changedDevice, SUsbHostDev
 }
 
 
-void CFbBaseView::OnUpdated(const SEntity *entity)
+void CFbBaseView::OnDbUpdated(const SEntity *entity)
 {
        _DBG();
        m->pPopup->Destroy();