[Release] livebox.web-provider-1.9
[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.0 (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     int priority;
36     float period;
37     std::string contentInfo;
38
39     // initialization
40     BoxInfo(std::string boxType,
41             std::string boxId,
42             std::string instanceId) :
43         boxType(boxType),
44         boxId(boxId),
45         instanceId(instanceId),
46         boxWidth(0),
47         boxHeight(0),
48         pdWidth(0),
49         pdHeight(0),
50         priority(0),
51         period(0),
52         contentInfo()
53     {
54     };
55 };
56
57 typedef std::shared_ptr<struct BoxInfo> BoxInfoPtr;
58 typedef struct BoxInfo& BoxInfoRef;
59
60 #endif // BOX_DATA_H