1 //******************************************************************
3 // Copyright 2015 Samsung Electronics All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
24 * This file contains RCSBundleInfo class, which provides APIs related to Bundle information.
38 * @class RCSBundleInfo
39 * @brief This class provides APIs for creating, getting and setting the Bundle Information
46 virtual ~RCSBundleInfo();
49 * API for setting the Id of the bundle
51 * @param name - Id of the bundle in string form
54 virtual void setID(const std::string &name) = 0;
57 * API for getting the Id of the bundle
59 * @return string - Id of the bundle
62 virtual const std::string &getID() = 0;
65 * API for setting the path of the bundle
67 * @param path - path of the bundle in string form
70 virtual void setPath(const std::string &path) = 0;
73 * API for getting the path of the bundle
75 * @return path - path of the bundle
78 virtual const std::string &getPath() = 0;
81 * API for setting the Activator name for the bundle
83 * @param activator - Activator name in string form
86 virtual void setActivatorName(const std::string &activator) = 0;
89 * API for setting the Activator name for the bundle
91 * @return string - Name of the activator
94 virtual const std::string &getActivatorName() = 0;
97 * API for setting the library path for the bundle
99 * @param libpath - Library path in string form
102 virtual void setLibraryPath(const std::string &libpath) = 0;
105 * API for getting the library path for the bundle
107 * @return string - Library path in string form
110 virtual const std::string& getLibraryPath() = 0;
113 * API for setting the version of the bundle
115 * @param version - version of the bundle in string form
118 virtual void setVersion(const std::string &version) = 0;
121 * API for getting the version of the bundle
123 * @return string - version of the bundle
126 virtual const std::string &getVersion() = 0;
129 * API for creating new bundle information
131 * @return RCSBundleInfo - RCSBundleInfo pointer.
134 static RCSBundleInfo *build();
136 std::string m_ID, m_path, m_version;
141 #endif /* BUNDLEINFO_H_ */