#ifndef _MM_LIST_FORM_H_
#define _MM_LIST_FORM_H_
+#include <FSystem.h>
#include "MmListPresentationModel.h"
class SortByListProvider;
class MemoListForm
: public IDataEventListener
, public Tizen::Ui::Controls::Form
+ , public Tizen::System::ISettingEventListener
, public Tizen::Ui::IActionEventListener
, public Tizen::Ui::IKeyEventListener
, public Tizen::Ui::IKeypadEventListener
virtual bool OnPreviewKeyPressed (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo);
virtual bool OnPreviewKeyReleased (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo);
+ virtual void OnSettingChanged(Tizen::Base::String& key);
private:
Tizen::Ui::Controls::FooterItem __footerItemCreate;
bool __isSearchRegistered;
Tizen::Base::Collection::ArrayList* __pShareMemoList;
Tizen::Ui::Controls::OptionMenu* __pOption;
Tizen::Base::String* __pDrawingFileName;
+ Tizen::Base::String __dateTimeFormat;
};
#endif /* _MM_LIST_FORM_H_ */
using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
using namespace Tizen::Graphics;
+using namespace Tizen::System;
using namespace Tizen::Io;
using namespace Tizen::Ui;
using namespace Tizen::Ui::Controls;
MemoListForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
{
MemoListPresentationModel::GetInstance()->SetDataEventListener(this);
+
+ String dateTimeFormatKey = L"http://tizen.org/setting/locale.date_time.format";
+ SettingInfo::GetValue(dateTimeFormatKey, __dateTimeFormat);
+ SettingInfo::AddSettingEventListener(*this);
+
if (pArgs != null)
{
Integer* isSaved = static_cast<Integer*>(pArgs->GetAt(0));
{
return false;
}
+
+void
+MemoListForm::OnSettingChanged(Tizen::Base::String& key)
+{
+ String dateTimeFormatString;
+ String dateTimeFormatKey = L"http://tizen.org/setting/locale.date_time.format";
+
+ if ( key.CompareTo(dateTimeFormatKey) == 0 )
+ {
+ SettingInfo::GetValue(dateTimeFormatKey, dateTimeFormatString);
+ if ( __dateTimeFormat.CompareTo(dateTimeFormatString) !=0)
+ {
+ __dateTimeFormat = dateTimeFormatString;
+ __pMemoListView->UpdateList();
+ }
+ }
+ return;
+}