/* * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.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.tizenopensource.org/license * * 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. */ #ifndef WEB_SRC_SETTING_WEBAPP_DETAIL_FEATURE_H_ #define WEB_SRC_SETTING_WEBAPP_DETAIL_FEATURE_H_ #include #include namespace WebAppDetailSetting { class Feature { std::string m_name; std::string m_uri; AceDB::PreferenceTypes m_perm; public: Feature(const char *name = NULL, const char *uri = NULL) : m_perm(AceDB::PreferenceTypes::PREFERENCE_DEFAULT) { if (name) m_name.assign(name); if (uri) m_uri.assign(uri); } void setPerm(AceDB::PreferenceTypes perm) { m_perm = perm; } std::string& getName(void) { return m_name; } std::string& getUri(void) { return m_uri; } AceDB::PreferenceTypes getPerm(void) { return m_perm; } }; } /* WebAppDetailSetting */ #endif /* WEB_SRC_SETTING_WEBAPP_DETAIL_FEATURE_H_ */