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 #ifndef TIZENAPIS_API_APPLICATION_INFORMATION_H_
19 #define TIZENAPIS_API_APPLICATION_INFORMATION_H_
23 #include <dpl/log/log.h>
24 #include <dpl/shared_ptr.h>
27 namespace Application {
29 class ApplicationInformation;
30 typedef DPL::SharedPtr<ApplicationInformation> ApplicationInformationPtr;
32 typedef std::vector<ApplicationInformationPtr> ApplicationInformationArray;
33 typedef DPL::SharedPtr<ApplicationInformationArray> ApplicationInformationArrayPtr;
35 class ApplicationInformation
38 ApplicationInformation(const std::string &appId);
39 ApplicationInformation();
40 ~ApplicationInformation();
42 std::string getName() const;
43 void setName(const std::string &name);
44 std::string getAppId() const;
45 void setAppId(const std::string &appId);
46 std::string getIconPath() const;
47 void setIconPath(const std::string &iconPath);
48 std::string getVersion() const;
49 void setVersion(const std::string &version);
51 void setShow(const bool &show);
52 std::vector<std::string> getCategories() const;
53 void setCategories(const std::vector<std::string> &categories);
54 void addCategories(const std::string &category);
55 time_t getInstallDate() const;
56 void setInstallDate(const time_t &date);
57 long getInstallSize() const;
58 void setInstallSize(const long &size);
59 std::string getPackageId() const;
60 void setPackageId(const std::string &pkgId);
61 // temporal code. if package manager issue is solved, disable below code.
63 bool isInitialized() const;
70 std::string m_iconPath;
71 std::string m_version;
76 // temporal code. if package manager issue is solved, disable below code.
78 std::vector<std::string> m_categories;