The license change version 1.0 to version 1.1
[platform/framework/web/web-provider.git] / src / Core / BoxData.h
1 /*
2  * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Flora License, Version 1.1 (the "License");
5  *    you may not use this file except in compliance with the License.
6  *    You may obtain a copy of the License at
7  *
8  *        http://floralicense.org/license/
9  *
10  *    Unless required by applicable law or agreed to in writing, software
11  *    distributed under the License is distributed on an "AS IS" BASIS,
12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *    See the License for the specific language governing permissions and
14  *    limitations under the License.
15  */
16 /**
17  * @file    BoxData.h
18  * @author  Yunchan Cho (yunchan.cho@samsung.com)
19  */
20 #ifndef BOX_DATA_H
21 #define BOX_DATA_H
22
23 #include <memory>
24 #include <string>
25
26 struct BoxInfo
27 {
28     std::string boxType;
29     std::string boxId;
30     std::string instanceId;
31     int boxWidth;
32     int boxHeight;
33     int pdWidth;
34     int pdHeight;
35     double pdX;
36     double pdY;
37     int priority;
38     float period;
39     std::string contentInfo;
40
41     // initialization
42     BoxInfo(std::string boxType,
43             std::string boxId,
44             std::string instanceId) :
45         boxType(boxType),
46         boxId(boxId),
47         instanceId(instanceId),
48         boxWidth(0),
49         boxHeight(0),
50         pdWidth(0),
51         pdHeight(0),
52         pdX(0.0f),
53         pdY(0.0f),
54         priority(0),
55         period(0),
56         contentInfo()
57     {
58     };
59 };
60
61 typedef std::shared_ptr<struct BoxInfo> BoxInfoPtr;
62 typedef struct BoxInfo& BoxInfoRef;
63
64 #endif // BOX_DATA_H