2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 #include "ApplicationInformation.h"
21 namespace Application {
22 ApplicationInformation::ApplicationInformation(const std::string &appId)
27 m_isInitialized = false;
31 ApplicationInformation::ApplicationInformation()
36 m_isInitialized = false;
39 ApplicationInformation::~ApplicationInformation()
43 std::string ApplicationInformation::getName() const
48 void ApplicationInformation::setName(const std::string &name)
53 std::string ApplicationInformation::getAppId() const
58 void ApplicationInformation::setAppId(const std::string &appId)
63 std::string ApplicationInformation::getIconPath() const
68 void ApplicationInformation::setIconPath(const std::string &iconPath)
70 m_iconPath = iconPath;
73 std::string ApplicationInformation::getVersion() const
78 void ApplicationInformation::setVersion(const std::string &version)
83 bool ApplicationInformation::getShow() const
88 void ApplicationInformation::setShow(const bool &show)
93 std::vector<std::string> ApplicationInformation::getCategories() const
98 void ApplicationInformation::setCategories(const std::vector<std::string> &categories)
100 m_categories = categories;
103 void ApplicationInformation::addCategories(const std::string &category)
105 m_categories.push_back(category);
108 time_t ApplicationInformation::getInstallDate() const
110 return m_installDate;
113 void ApplicationInformation::setInstallDate(const time_t &date)
115 m_installDate = date;
118 long ApplicationInformation::getInstallSize() const
120 return m_installSize;
123 void ApplicationInformation::setInstallSize(const long &size)
125 m_installSize = size;
128 std::string ApplicationInformation::getPackageId() const
133 void ApplicationInformation::setPackageId(const std::string &pkgId)
139 // Temporal code. if package manager issue is solved, disable below code.
141 bool ApplicationInformation::isInitialized() const
143 return m_isInitialized;
146 void ApplicationInformation::setInitialize()
148 m_isInitialized = true;