+wrt-setting (0.0.32) unstable; urgency=low
+
+ * Adding the smack rule include files
+
+ -- Jihoon Chung <jihoon.chung@samsung.com> Wed, 13 Mar 2013 17:15:04 +0900
+
+wrt-setting (0.0.31) unstable; urgency=low
+
+ * Remove web storage & filesystem usage code
+
+ -- Jihoon Chung <jihoon.chung@samsung.com> Wed, 06 Mar 2013 19:04:45 +0900
+
+wrt-setting (0.0.30) unstable; urgency=low
+
+ * Implement tizen privilege for w3c API
+ * Fixed the wrong creation of security origin db
+ * Changing the wrt-setting pkg version
+
+ -- leerang <leerang.song@samsung.com> Fri, 22 Feb 2013 15:40:11 +0900
+
+wrt-setting (0.0.29) unstable; urgency=low
+
+ * Chaning the ID to TizenAppID from PkgID
+ * Change the number of Display language
+ * Prevent issues fixes
+ * License name change tizenopensource to floralicense
+
+ * Git : apps/home/wrt-setting
+ * Tag : wrt-setting_0.0.29
+
+ -- leerang <leerang.song@samsung.com> Wed, 20 Feb 2013 14:19:16 +0900
+
wrt-setting (0.0.28) unstable; urgency=low
* Fix of license display in wrong language
Name: wrt-setting
-Version: 0.0.28
+Version: 0.0.32
Release: 1
Summary: WRT Setting UI Gadgets
Group: Development/Libraries
%files
%manifest wrt-setting.manifest
+/etc/smack/accesses2.d/ug.webapp-common-efl.include
+/etc/smack/accesses2.d/ug.webapp-detail-efl.include
%defattr(-,root,root,-)
%{_datadir}/license/%{name}
/opt/ug/*
# for i18n
-SET(POFILES hy.po az.po eu.po bg.po ca.po zh_CN.po zh_HK.po
+SET(POFILES hy.po az.po eu.po bg.po ca.po
cs.po da.po nl_NL.po en.po en_US.po et.po fi.po fr_FR.po gl.po hr.po
-ka.po de_DE.po el_GR.po hu.po is.po ga.po it_IT.po ja_JP.po kk.po
-ko_KR.po lv.po lt.po mk.po nb.po pl.po pt_PT.po pt_BR.po ro.po
+ka.po de_DE.po el_GR.po hu.po is.po it_IT.po kk.po
+ko_KR.po lv.po lt.po nb.po pl.po pt_PT.po pt_BR.po ro.po
ru_RU.po sr.po sk.po sl.po es_ES.po es_MX.po sv.po tr_TR.po uk.po
-uz.po ar.po zh_SG.po hi.po en_PH.po fr_CA.po zh_TW.po)
+uz.po fr_CA.po)
SET(PROJECT_NAME "ug-webapp-common-efl")
SET(LOCALE_DIR "/usr/ug/res/locale/")
SET_TARGET_PROPERTIES(${TARGET_UG_LIB} PROPERTIES VERSION ${PROJECT_VERSION})
TARGET_LINK_LIBRARIES(${TARGET_UG_LIB} ${UG_WEB_APP_COMMON_DEPS_LDFLAGS})
INSTALL(TARGETS ${TARGET_UG_LIB} DESTINATION ${UGDIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ug.webapp-common-efl.include DESTINATION /etc/smack/accesses2.d)
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/icons/ DESTINATION ${ICONDIR} FILES_MATCHING PATTERN "*.png")
ADD_SUBDIRECTORY(edc)
--- /dev/null
+$1 wrt-commons::db_wrt rwx
SET_TARGET_PROPERTIES(${TARGET_UG_DETAIL_LIB} PROPERTIES VERSION ${PROJECT_VERSION})
TARGET_LINK_LIBRARIES(${TARGET_UG_DETAIL_LIB} ${UG_WEB_APP_DETAIL_DEPS_LDFLAGS} ${UG_WEB_APP_DETAIL_DEPS_LIBRARIES})
INSTALL(TARGETS ${TARGET_UG_DETAIL_LIB} DESTINATION ${UGDIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ug.webapp-detail-efl.include DESTINATION /etc/smack/accesses2.d)
ADD_SUBDIRECTORY(edc)
const char* const TEXT_NAVIFRAME_TITLE = "Advanced Settings";
}
-AdvancedView::AdvancedView(Evas_Object *navi, int appID) :
+AdvancedView::AdvancedView(Evas_Object *navi, DPL::String appID) :
m_naviframe(navi),
m_appID(appID)
{
"Location";
m_menuMap[SECURITY_SETTINGS_IDX_WEB_NOTIFICATION_USAGE] =
"Web notification";
- m_menuMap[SECURITY_SETTINGS_IDX_WEB_DATABASE_USAGE] =
- "Web database";
- m_menuMap[SECURITY_SETTINGS_IDX_FILE_SYSTEM_USAGE] =
- "File system access";
m_menuMap[SECURITY_SETTINGS_IDX_EXCEPTIONS_SETTINGS] =
"Exceptions Settings";
m_menuMap[DEVELOPER_OPTIONS_IDX_MEMORY_SAVING_MODE] =
elm_genlist_item_select_mode_set(groupItem,
ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
- if (index == GROUP_IDX_SECURITY_SETTINGS) {
+ switch(index) {
+ case GROUP_IDX_SECURITY_SETTINGS:
// create Security Settings menu
loadSecuritySettingsMenu(genlist);
- } else if (index == GROUP_IDX_DEVELOPER_OPTIONS) {
+ break;
+ case GROUP_IDX_DEVELOPER_OPTIONS:
// create developer Options menu
loadDeveloperOptionsMenu(genlist);
- } else {
+ break;
+ default:
LogError("Wrong index");
+ break;
}
}
elm_naviframe_item_push(m_naviframe,
}
}
-SettingData::SettingData(int appID, int index, std::string menuText) :
+SettingData::SettingData(DPL::String appID, int index, std::string menuText) :
m_index(static_cast<MenuIndex>(index)),
m_menuText(menuText)
{
} else if (m_index == SECURITY_SETTINGS_IDX_WEB_NOTIFICATION_USAGE) {
key = VconfConfig::GetVconfKeyWebNotificationUsage(
m_dao->getPkgName());
- } else if (m_index == SECURITY_SETTINGS_IDX_WEB_DATABASE_USAGE) {
- key = VconfConfig::GetVconfKeyWebDatabaseUsage(m_dao->getPkgName());
- } else if (m_index == SECURITY_SETTINGS_IDX_FILE_SYSTEM_USAGE) {
- key = VconfConfig::GetVconfKeyFilesystemUsage(m_dao->getPkgName());
} else if (m_index == DEVELOPER_OPTIONS_IDX_MEMORY_SAVING_MODE) {
key = VconfConfig::GetVconfKeyMemorySavingMode(m_dao->getPkgName());
} else {
} else if (m_index == SECURITY_SETTINGS_IDX_WEB_NOTIFICATION_USAGE) {
key = VconfConfig::GetVconfKeyWebNotificationUsage(
m_dao->getPkgName());
- } else if (m_index == SECURITY_SETTINGS_IDX_WEB_DATABASE_USAGE) {
- key = VconfConfig::GetVconfKeyWebDatabaseUsage(m_dao->getPkgName());
- } else if (m_index == SECURITY_SETTINGS_IDX_FILE_SYSTEM_USAGE) {
- key = VconfConfig::GetVconfKeyFilesystemUsage(m_dao->getPkgName());
} else if (m_index == DEVELOPER_OPTIONS_IDX_MEMORY_SAVING_MODE) {
key = VconfConfig::GetVconfKeyMemorySavingMode(m_dao->getPkgName());
} else {
#include <string>
#include <map>
#include <dpl/scoped_ptr.h>
+#include <dpl/string.h>
#include "view.h"
SECURITY_SETTINGS_IDX_SECURITY_POPUP_USAGE = SECURITY_SETTINGS_IDX_START,
SECURITY_SETTINGS_IDX_GEOLOCATION_USAGE,
SECURITY_SETTINGS_IDX_WEB_NOTIFICATION_USAGE,
- SECURITY_SETTINGS_IDX_WEB_DATABASE_USAGE,
- SECURITY_SETTINGS_IDX_FILE_SYSTEM_USAGE,
SECURITY_SETTINGS_IDX_EXCEPTIONS_SETTINGS,
SECURITY_SETTINGS_IDX_END = SECURITY_SETTINGS_IDX_EXCEPTIONS_SETTINGS,
DEVELOPER_OPTIONS_IDX_START = SECURITY_SETTINGS_IDX_END,
class AdvancedView : public View
{
public:
- AdvancedView(Evas_Object *naviframe, int appID);
+ AdvancedView(Evas_Object *naviframe, DPL::String appID);
~AdvancedView(void);
bool loadView(void);
private:
Evas_Object *m_naviframe;
- int m_appID;
+ DPL::String m_appID;
DPL::ScopedPtr<ExceptionsView> m_exceptionsView;
std::map<int, std::string> m_groupMenuMap;
std::map<int, std::string> m_menuMap;
std::string m_menuText;
std::string m_iconPart;
- SettingData(int appID, int index, std::string menuText);
+ SettingData(DPL::String appID, int index, std::string menuText);
bool isEnabled();
void saveChange(bool state);
};
return true;
}
-DetailView::DetailView(Evas_Object* navi, ui_gadget_h ug, int appID) :
+DetailView::DetailView(Evas_Object* navi, ui_gadget_h ug, DPL::String appID) :
m_naviframe(navi),
m_bx(NULL),
m_appID(appID),
ui_gadget_h m_ug;
DPL::ScopedPtr<WrtDB::WidgetDAO> m_dao;
WrtDB::WidgetLocalizedInfo m_localizedInfo;
- int m_appID;
+ DPL::String m_appID;
LicenseInfo *m_licenseInfo;
DPL::ScopedPtr<AdvancedView> m_advancedView;
void *event_info);
bool pushToNaviFrame(void);
public:
- DetailView(Evas_Object* naviframe, ui_gadget_h ug, int appID);
+ DetailView(Evas_Object* naviframe, ui_gadget_h ug, DPL::String appID);
~DetailView(void);
Evas_Object *loadView(void);
#include <dpl/foreach.h>
#include <dpl/assert.h>
#include <dpl/string.h>
+#include <dpl/wrt-dao-ro/widget_dao_read_only.h>
#include <wrt-commons/security-origin-dao/security_origin_dao.h>
//#include <ui-gadget.h>
}
-ExceptionsView::ExceptionsView(Evas_Object* navi, int appID) :
+ExceptionsView::ExceptionsView(Evas_Object* navi, DPL::String appID) :
m_naviframe(navi)
{
+ WrtDB::WidgetDAOReadOnly dao(appID);
+ WrtDB::TizenPkgId pkgName = dao.getTizenPkgId();
m_securityOriginDao =
SecurityOriginDB::SecurityOriginDAOPtr(
- new SecurityOriginDB::SecurityOriginDAO(appID));
+ new SecurityOriginDB::SecurityOriginDAO(pkgName));
}
ExceptionsView::~ExceptionsView(void)
ExceptionsSettingsData* data =
new ExceptionsSettingsData(m_securityOriginDao.get(),
*(*it));
- elm_genlist_item_append(genlist,
- &itcExceptionsSettings,
- static_cast<void*>(data),
- NULL,
- ELM_GENLIST_ITEM_NONE,
- selectedCallback,
- NULL);
+ Elm_Object_Item *objectItem;
+ objectItem = elm_genlist_item_append(genlist,
+ &itcExceptionsSettings,
+ static_cast<void*>(data),
+ NULL,
+ ELM_GENLIST_ITEM_NONE,
+ selectedCallback,
+ NULL);
+ if (m_securityOriginDao->isReadOnly(*(*it))) {
+ elm_object_item_disabled_set(objectItem, EINA_TRUE);
+ }
}
}
class ExceptionsView : public View
{
public:
- ExceptionsView(Evas_Object *naviframe, int appID);
+ ExceptionsView(Evas_Object *naviframe, DPL::String appID);
~ExceptionsView(void);
bool loadView(void);
private:
Evas_Object *m_naviframe;
- int m_appID;
+ DPL::String m_appID;
SecurityOriginDB::SecurityOriginDAOPtr m_securityOriginDao;
//Genlist
return NULL;
}
-MainView::MainView(ui_gadget_h ug, int appId) :
+MainView::MainView(ui_gadget_h ug, DPL::String appId) :
m_ug(ug),
m_appID(appId),
m_subCtnt(NULL),
class MainView : public View
{
ui_gadget_h m_ug;
- int m_appID;
+ DPL::String m_appID;
Evas_Object *m_subCtnt;
DPL::ScopedPtr<DetailView> m_detail;
DPL::ScopedPtr<PermView> m_perm;
Evas_Object *createToolBar(Evas_Object *parent);
public:
- MainView(ui_gadget_h ug, int appId);
+ MainView(ui_gadget_h ug, DPL::String appId);
~MainView(void);
Evas_Object *loadView(void);
#undef None
#include <dpl/wrt-dao-ro/WrtDatabase.h>
+#include <dpl/wrt-dao-ro/common_dao_types.h>
#include <dpl/wrt-dao-ro/widget_dao_read_only.h>
#include "mainview.h"
void *user_data)
{
struct priv *priv;
- int appID;
+ WrtDB::TizenAppId appID;
char *pkgname = NULL;
Assert(ug && user_data);
if (!pkgname)
return NULL;
- appID = static_cast<int>
- (WrtDB::WidgetDAOReadOnly::getHandle(DPL::FromASCIIString
- (std::string(pkgname))));
+ appID = WrtDB::WidgetDAOReadOnly::getTzAppId((DPL::FromASCIIString
+ (std::string(pkgname))));
/* Create MainView */
try {
--- /dev/null
+$1 wrt-commons::db_wrt rwx