eae79a554d7cf6bbe90bea09a22061b0ff6f2e57
[platform/upstream/iotivity.git] / service / basis / resourceContainer / src / BundleInfoInternal.cpp
1 //******************************************************************
2 //
3 // Copyright 2015 Samsung Electronics All Rights Reserved.
4 //
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 //
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
10 //
11 //      http://www.apache.org/licenses/LICENSE-2.0
12 //
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.
18 //
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20
21 #include "BundleInfoInternal.h"
22
23 namespace RC
24 {
25     BundleInfoInternal::BundleInfoInternal()
26     {
27
28     }
29
30     BundleInfoInternal::~BundleInfoInternal()
31     {
32
33     }
34
35     void BundleInfoInternal::setID(string id)
36     {
37         m_ID = id;
38     }
39
40     string BundleInfoInternal::getID()
41     {
42         return m_ID;
43     }
44
45     void BundleInfoInternal::setPath(string path)
46     {
47         m_path = path;
48     }
49     string BundleInfoInternal::getPath()
50     {
51         return m_path;
52     }
53
54     void BundleInfoInternal::setVersion(string version)
55     {
56         m_version = version;
57     }
58
59     string BundleInfoInternal::getVersion()
60     {
61         return m_version;
62     }
63
64     void BundleInfoInternal::setLoaded(bool loaded)
65     {
66         m_loaded = loaded;
67     }
68
69     bool BundleInfoInternal::isLoaded()
70     {
71         return m_loaded;
72     }
73
74     void BundleInfoInternal::setActivated(bool activated)
75     {
76         m_activated = activated;
77     }
78
79     bool BundleInfoInternal::isActivated()
80     {
81         return m_activated;
82     }
83
84     int BundleInfoInternal::getId()
85     {
86         return m_id;
87     }
88
89     void BundleInfoInternal::setId(int id)
90     {
91         m_id = id;
92     }
93
94     void BundleInfoInternal::setBundleActivator(activator_t* activator)
95     {
96         m_activator = activator;
97     }
98
99     activator_t* BundleInfoInternal::getBundleActivator()
100     {
101         return m_activator;
102     }
103
104     void BundleInfoInternal::setBundleDeactivator(deactivator_t* deactivator)
105     {
106         m_deactivator = deactivator;
107     }
108
109     deactivator_t* BundleInfoInternal::getBundleDeactivator()
110     {
111         return m_deactivator;
112     }
113
114     void BundleInfoInternal::setBundleHandle(void* handle)
115     {
116         m_bundleHandle = handle;
117     }
118
119     void* BundleInfoInternal::getBundleHandle()
120     {
121         return m_bundleHandle;
122     }
123 }