+wrt-commons (0.2.107) unstable; urgency=low
+
+ * Add Account parser
+ * Get plivilege feature for auto W3C fullsceen mode
+
+ -- leerang <leerang.song@samsung.com> Thu, 21 Mar 2013 10:56:01 +0900
+
wrt-commons (0.2.106) unstable; urgency=low
* Add one field for new attribute 'touch-effect' of <tizen:box-content>
using namespace DPL::DB::ORM::security_origin;
namespace SecurityOriginDB {
+using namespace WrtDB;
#define SQL_CONNECTION_EXCEPTION_HANDLER_BEGIN Try
#define SQL_CONNECTION_EXCEPTION_HANDLER_END(message) \
#include <dpl/log/log.h>
namespace SecurityOriginDB {
-const std::map<std::string, Feature> g_W3CPrivilegeTextMap = {
- {"http://tizen.org/privilege/location", FEATURE_GEOLOCATION},
- {"http://tizen.org/privilege/notification", FEATURE_WEB_NOTIFICATION},
- {"http://tizen.org/privilege/mediacapture", FEATURE_USER_MEDIA}
-};
} // namespace SecurityOriginDB
#include <dpl/db/thread_database_support.h>
#include <wrt-commons/security-origin-dao/security_origin_dao_types.h>
#include <dpl/wrt-dao-ro/common_dao_types.h>
+#include <dpl/wrt-dao-ro/widget_dao_types.h>
namespace SecurityOriginDB {
class SecurityOriginDAO
void setSecurityOriginData(const SecurityOriginData &securityOriginData,
const Result result,
const bool readOnly = false);
- void setPrivilegeSecurityOriginData(const Feature feature,
+ void setPrivilegeSecurityOriginData(const WrtDB::Feature feature,
bool isOnlyAllowedLocalOrigin = true);
void removeSecurityOriginData(const SecurityOriginData &securityOriginData);
void removeSecurityOriginData(const Result result);
#include <memory>
#include <map>
#include <dpl/string.h>
+#include <dpl/wrt-dao-ro/widget_dao_types.h>
namespace SecurityOriginDB {
-enum Feature
-{
- FEATURE_START = 0,
- FEATURE_GEOLOCATION = 0,
- FEATURE_WEB_NOTIFICATION,
- FEATURE_USER_MEDIA,
- FEATURE_END = FEATURE_USER_MEDIA
-};
-
enum Result
{
RESULT_UNKNOWN = 0,
RESULT_DENY_ALWAYS
};
-extern const std::map<std::string, Feature> g_W3CPrivilegeTextMap;
-
struct Origin
{
DPL::String scheme;
struct SecurityOriginData
{
- Feature feature;
+ WrtDB::Feature feature;
Origin origin;
- SecurityOriginData(const Feature features, const Origin& ori) :
+ SecurityOriginData(const WrtDB::Feature features, const Origin& ori) :
feature(features),
origin(ori)
{}
dao/widget_dao_read_only.cpp
dao/webruntime_database.cpp
dao/WrtDatabase.cpp
+ dao/widget_dao_types.cpp
)
set(WRT_DAO_RW_SOURCES
include/dpl/wrt-dao-ro/widget_dao_read_only.h
include/dpl/wrt-dao-ro/wrt_db_types.h
include/dpl/wrt-dao-ro/WrtDatabase.h
+ include/dpl/wrt-dao-ro/widget_dao_types.h
DESTINATION include/dpl-efl/dpl/wrt-dao-ro
)
return row.Get_tizen_pkgid();
}
+PrivilegeList WidgetDAOReadOnly::getWidgetPrivilege() const
+{
+ //TODO check widget existance
+ SQL_CONNECTION_EXCEPTION_HANDLER_BEGIN
+ {
+ WRT_DB_SELECT(select, WidgetPrivilege, &WrtDatabase::interface())
+ select->Where(Equals<WidgetPrivilege::app_id>(m_widgetHandle));
+
+ return select->GetValueList<WidgetPrivilege::name>();
+ }
+ SQL_CONNECTION_EXCEPTION_HANDLER_END("Failed to get PrivilegeList")
+}
+
#undef SQL_CONNECTION_EXCEPTION_HANDLER_BEGIN
#undef SQL_CONNECTION_EXCEPTION_HANDLER_END
#undef CHECK_WIDGET_EXISTENCE
--- /dev/null
+/*
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/**
+ *
+ * @file widget_dao_types.cpp
+ * @author Leerang Song (leerang.song@samsung.com)
+ * @version 1.0
+ * @brief This file contains the declaration of
+ * common data types forwidget database.
+ */
+
+#include <dpl/wrt-dao-ro/widget_dao_types.h>
+#include <dpl/log/log.h>
+
+namespace WrtDB {
+
+const std::map<std::string, Feature> g_W3CPrivilegeTextMap = {
+ {"http://tizen.org/privilege/location", FEATURE_GEOLOCATION},
+ {"http://tizen.org/privilege/notification", FEATURE_WEB_NOTIFICATION},
+ {"http://tizen.org/privilege/mediacapture", FEATURE_USER_MEDIA},
+ {"http://tizen.org/privilege/fullscreen", FEATURE_FULLSCREEN_MODE}
+};
+} // namespace SecurityOriginDB
typedef std::list<DPL::String> WindowModeList;
+typedef std::list<DPL::String> PrivilegeList;
+
typedef std::set<EncryptedFileInfo> EncryptedFileList;
/**
bool operator<=(const LiveboxInfo&) const;
};
typedef std::list<DPL::Optional<LiveboxInfo> > LiveboxList;
+
+ enum IconSectionType
+ {
+ DefaultIcon =0,
+ SmallIcon,
+ };
+
+ typedef std::set<std::pair<IconSectionType, DPL::String>> IconSet;
+ typedef std::list<DPL::String> CapabilityList;
+ typedef std::set<std::pair<DPL::String, DPL::String>> DisplayNameSet;
+
+ struct AccountProvider
+ {
+ AccountProvider() :
+ m_multiAccountSupport(false)
+ { }
+
+ bool m_multiAccountSupport;
+ IconSet m_iconSet;
+ DisplayNameSet m_displayNameSet;
+ CapabilityList m_capabilityList;
+ };
+
LiveboxList m_livebox;
typedef std::list<DPL::OptionalString> DependsPkgList;
DPL::OptionalString backgroundPage;
// For category
CategoryList categoryList;
+ // For Account
+ AccountProvider accountProvider;
ConfigParserData() :
flashNeeded(false),
* @return tizen package id
*/
TizenPkgId getTizenPkgId() const;
+ PrivilegeList getWidgetPrivilege() const;
};
} // namespace WrtDB
--- /dev/null
+/*
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/**
+ *
+ * @file widget_dao_types.h
+ * @author Leerang Song (leerang.song@samsung.com)
+ * @version 1.0
+ * @brief This file contains the declaration of
+ * common data types forwidget database.
+ */
+#ifndef _WIDGET_DAO_TYPES_H_
+#define _WIDGET_DAO_TYPES_H_
+
+#include <list>
+#include <memory>
+#include <map>
+#include <dpl/string.h>
+
+namespace WrtDB {
+
+enum Feature
+{
+ FEATURE_START = 0,
+ FEATURE_GEOLOCATION = 0,
+ FEATURE_WEB_NOTIFICATION,
+ FEATURE_USER_MEDIA,
+ FEATURE_FULLSCREEN_MODE,
+ FEATURE_END = FEATURE_FULLSCREEN_MODE
+};
+extern const std::map<std::string, Feature> g_W3CPrivilegeTextMap;
+} // namespace WrtDB
+
+#endif // _WIDGET_DAO_TYPES_H_
-#git:framework/web/wrt-commons wrt-commons 0.2.106
+#git:framework/web/wrt-commons wrt-commons 0.2.107
Name: wrt-commons
Summary: Wrt common library
-Version: 0.2.106
+Version: 0.2.107
Release: 1
Group: Development/Libraries
License: Apache License, Version 2.0