const ContentInformation& contentInfoStruct,
const int contentTotalCount);
Tizen::Base::Collection::ArrayList* GetContentListN(int itemIndex);
- void UpdateContentList(void);
virtual bool IsEmptyContentList(void);
+ virtual void UpdateContentList(void);
protected:
int __itemIndex;
Tizen::Graphics::Bitmap* __pThumbnail;
};
-#endif // _MP_ALBUM_LIST_PANEL_H_
\ No newline at end of file
+#endif // _MP_ALBUM_LIST_PANEL_H_
private:
result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfoStruct);
Tizen::Base::Collection::ArrayList* GetContentListN(int itemIndex);
- void UpdateContentList(void);
virtual bool IsEmptyContentList(void);
+ virtual void UpdateContentList(void);
private:
Tizen::Ui::Controls::TableViewContextItem* __pContextItem;
int __itemIndex;
};
-#endif // _MP_ALL_LIST_PANEL_H_
\ No newline at end of file
+#endif // _MP_ALL_LIST_PANEL_H_
result CreateTableViewItem(Tizen::Ui::Container& parent,
const ContentInformation& contentInfoStruct,
const int contentTotalCount);
- void UpdateContentList(void);
virtual bool IsEmptyContentList(void);
+ virtual void UpdateContentList(void);
protected:
int __itemIndex;
ArtistListPresentationModel* __pPresentationModel;
};
-#endif // _MP_ARTIST_LIST_PANEL_H_
\ No newline at end of file
+#endif // _MP_ARTIST_LIST_PANEL_H_
#include <FUi.h>\r
#include "MpSceneRegister.h"\r
#include "MpTypes.h"\r
+//#include "FIo.h"\r
+#include "FContent.h"\r
\r
class ContentPanel\r
: public Tizen::Ui::Controls::Panel\r
+ , public Tizen::Content::IContentUpdateEventListener\r
, public Tizen::Ui::Controls::ITableViewItemProvider\r
, public Tizen::Ui::Controls::ITableViewItemEventListener\r
, public Tizen::Ui::Controls::IFormBackEventListener\r
virtual void OnUpdateContentList(void) = 0;\r
virtual void OnOrientationPanelChanged(Tizen::Ui::OrientationStatus orientationStatus);\r
virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);\r
+ virtual void OnContentDirectoryScanCompleted (const Tizen::Base::String &directoryPath, result r);\r
+ virtual void OnContentFileCreated (Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r);\r
+ virtual void OnContentFileDeleted (Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r);\r
+ virtual void OnContentFileUpdated (Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r);\r
\r
protected:\r
Tizen::Ui::Controls::Header* GetHeader(void);\r
void RemoveBackEventListner(void);\r
void SetShowStateFooter(bool isShow);\r
\r
+private:\r
+ virtual void UpdateContentList(void) = 0;\r
+\r
protected:\r
Tizen::Ui::Controls::TableView* __pContentTableView;\r
Tizen::Ui::Controls::Label* __pNoContentLabel;\r
FooterButtonStyle __footerButtonStyle;\r
};\r
\r
-#endif // _MP_CONTENT_PANEL_H_
\ No newline at end of file
+#endif // _MP_CONTENT_PANEL_H_\r
void UpdateContentList(void);
void SetEditHeaderStyle(void);
- void SetTabHeaderStyle(void);
void SetDisableIconAllCheckButton(void);
protected:
private:
result CreateTableViewItem(Tizen::Ui::Container& parent, const Tizen::Base::String& contentPath, int contentCount);
-
- void UpdateContentList(void);
+ virtual void UpdateContentList(void);
virtual bool IsEmptyContentList(void);
private:
FolderListPresentationModel* __pPresentationModel;
};
-#endif // _MP_FOLDERS_LIST_PANEL_H_
\ No newline at end of file
+#endif // _MP_FOLDERS_LIST_PANEL_H_
Tizen::Base::String& labelName,
const Tizen::Graphics::Bitmap& bitmap,
int totalCount);
- void UpdateContentList(void);
+ virtual void UpdateContentList(void);
virtual bool IsEmptyContentList(void);
private:
Tizen::Base::String* __pPlaylistName;
};
-#endif // _MP_PLAY_LIST_LIST_PANEL_H_
\ No newline at end of file
+#endif // _MP_PLAY_LIST_LIST_PANEL_H_
#include "MpCommonUtil.h"\r
\r
using namespace Tizen::Graphics;\r
+using namespace Tizen::Content;\r
using namespace Tizen::Ui;\r
using namespace Tizen::Ui::Controls;\r
\r
, __footerButtonStyle(STYLE_MAX)\r
{\r
AppLogDebug("ENTER");\r
+ ContentManager contentManager;\r
+ contentManager.Construct();\r
+\r
+ contentManager.AddContentUpdateEventListener(*this);\r
AppLogDebug("EXIT");\r
}\r
\r
ContentPanel::~ContentPanel(void)\r
{\r
AppLogDebug("ENTER");\r
+ ContentManager contentManager;\r
+ contentManager.Construct();\r
+\r
+ contentManager.RemoveContentUpdateEventListener(*this);\r
AppLogDebug("EXIT");\r
}\r
\r
Header* pHeader = GetHeader();\r
pHeader->AddActionEventListener(*this);\r
\r
- Footer* pFooter = GetFooter();\r
- pFooter->AddActionEventListener(*this);\r
SetBackEventListner();\r
SetFooter(__footerButtonStyle);\r
+ Footer* pFooter = GetFooter();\r
+ pFooter->AddActionEventListener(*this);\r
+\r
AppLogDebug("EXIT");\r
}\r
\r
AppLogDebug("ENTER");\r
Tizen::App::Application::GetInstance()->Terminate();\r
AppLogDebug("EXIT");\r
-}
\ No newline at end of file
+}\r
+\r
+void\r
+ContentPanel::OnContentDirectoryScanCompleted (const Tizen::Base::String &directoryPath, result r)\r
+{\r
+ UpdateContentList();\r
+}\r
+\r
+void\r
+ContentPanel::OnContentFileCreated (Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r)\r
+{\r
+ UpdateContentList();\r
+}\r
+\r
+void\r
+ContentPanel::OnContentFileDeleted (Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r)\r
+{\r
+ UpdateContentList();\r
+}\r
+\r
+void\r
+ContentPanel::OnContentFileUpdated (Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r)\r
+{\r
+ UpdateContentList();\r
+}\r
__pPlayListPickerPopup = null;
}
- Header* pHeader = GetParentHeader();
- pHeader->RemoveActionEventListener(*this);
-
- Footer* pFooter = GetFooter();
- pFooter->RemoveActionEventListener(*this);
-
AppLogDebug("EXIT");
return E_SUCCESS;
}
Tizen::Base::Collection::IList* pArgs)
{
AppLogDebug("ENTER");
+
+ Header* pHeader = GetParentHeader();
+ pHeader->RemoveActionEventListener(*this);
+
Form* pForm = dynamic_cast<Form*>(GetParent());
Footer* pFooter = null;
AppAssert(pForm);
SceneManager* pSceneManager = SceneManager::GetInstance();
AppAssert(pSceneManager);
-// SetTabHeaderStyle();
pSceneManager->GoBackward(BackwardSceneTransition());
AppLogDebug("EXIT");
}
FolderListEditorPanel::SetEditHeaderStyle(void)
{
AppLogDebug("ENTER");
- RemoveParentHeaderActionEventListener();
Header* pHeader = GetParentHeader();
String titleText(ResourceManager::GetString(L"IDS_COM_BODY_EDIT"));
CommonUtil::SetEditHeaderStyle(*pHeader, titleText);
}
void
-FolderListEditorPanel::SetTabHeaderStyle(void)
-{
- AppLogDebug("ENTER");
- Header* pHeader = GetParentHeader();
- pHeader->RemoveActionEventListener(*this);
- CommonUtil::SetTabHeaderStyle(*pHeader);
- AddParentHeaderActionEventListener();
- pHeader->Invalidate(true);
- AppLogDebug("EXIT");
-}
-
-void
FolderListEditorPanel::SetDisableIconAllCheckButton(void)
{
AppLogDebug("ENTER");
AppLogDebug("EXIT");
return E_SUCCESS;
-}
\ No newline at end of file
+}
{
AppLogDebug("ENTER");
//GetFooter()->SetShowState(true);
- Rectangle clientBounds = GetClientAreaBounds();
- __pSearchTableView->SetBounds(Rectangle(0, 0, clientBounds.width, clientBounds.height - __pSearchBar->GetHeight()));
+// Rectangle clientBounds = GetClientAreaBounds();
+// __pSearchTableView->SetBounds(Rectangle(0, 0, clientBounds.width, clientBounds.height - __pSearchBar->GetHeight()));
AppLogDebug("EXIT");
}
SearchForm::OnKeypadOpened(Tizen::Ui::Control& source)
{
AppLogDebug("ENTER");
- Rectangle clientBounds = GetClientAreaBounds();
- __pSearchTableView->SetBounds(Rectangle(0, 0, clientBounds.width, clientBounds.height - __pSearchBar->GetHeight()));
+// Rectangle clientBounds = GetClientAreaBounds();
+// __pSearchTableView->SetBounds(Rectangle(0, 0, clientBounds.width, clientBounds.height - __pSearchBar->GetHeight()));
AppLogDebug("EXIT");
}
{
if (appControlResult == APP_CTRL_RESULT_SUCCEEDED)
{
- const String* pResultString = static_cast<const String*>(pExtraData->GetValue(String(APPCONTROL_KEY_SOCIAL_ITEM_ID)));
-
- AppLogDebug("%ls", pResultString->GetPointer());
- int contactId;
- Integer::Parse(*pResultString, contactId);
+ int contactId = -1;
+ String* pKey = null;
+ ArrayList* pArrayListValue = null;
+ String* pResultString = null;
+ if (pExtraData != null)
+ {
+ IMapEnumerator* pEnum = pExtraData->GetMapEnumeratorN();
+ while (pEnum->MoveNext() == E_SUCCESS)
+ {
+ pKey = static_cast<String*>(pEnum->GetKey());
+ if (pKey->Equals(APPCONTROL_KEY_SOCIAL_ITEM_ID, true))
+ {
+ pArrayListValue = static_cast<ArrayList*>(pEnum->GetValue());
+ pResultString = static_cast<String*>(pArrayListValue->GetAt(0));
+ AppLogDebug("extraData : %ls:%ls", pKey->GetPointer(), pResultString->GetPointer());
+ Integer::Parse(*pResultString, contactId);
+ break;
+ }
+ }
+ delete pEnum;
+
+ if (contactId < 0)
+ {
+ AppLogDebug("pKey is invaild");
+ return;
+ }
+ }
+ else
+ {
+ AppLogDebug("pExtraData is null");
+ return;
+ }
AddressbookManager* pAddressbookManager = AddressbookManager::GetInstance();
Addressbook* pAddressbook = pAddressbookManager->GetAddressbookN(DEFAULT_ADDRESSBOOK_ID);
AppLogDebug("ENTER");
__pCurrentContentPath = contentPath;
AppLogDebug("EXIT");
-}
\ No newline at end of file
+}