The license change version 1.0 to version 1.1
[apps/home/wrt-setting.git] / webapp-common / edc / main.edc
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
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 #include "defs.h"
18
19 collections {
20         group {
21                 name, GRP_CONTENT;
22
23                 parts {
24                         part {
25                                 name, PART_CONTENT;
26                                 type, SWALLOW;
27                                 description {
28                                         state, "default" 0.0;
29                                 }
30                                 description {
31                                         state, "nocontent" 0.0;
32                                         inherit, "default" 0.0;
33                                         rel1.relative, -1.0 0.0;
34                                         rel2.relative, 0.0 1.0;
35                                 }
36                         }
37
38                         part {
39                                 name, PART_NOCONTENT;
40                                 type, SWALLOW;
41                                 description {
42                                         state, "default" 0.0;
43                                         rel1.relative, 1.0 0.0;
44                                         rel2.relative, 2.0 1.0;
45                                 }
46                                 description {
47                                         state, "nocontent" 0.0;
48                                         inherit, "default" 0.0;
49                                         rel1.relative, 0.0 0.0;
50                                         rel2.relative, 1.0 1.0;
51                                 }
52                         }
53                 }
54
55                 programs {
56                         program {
57                                 name, "show_nocontent";
58                                 signal, SIG_SHOW_NOCONTENT;
59                                 source, SRC_PROG;
60                                 action, STATE_SET "nocontent" 0.0;
61                                 target, PART_CONTENT;
62                                 target, PART_NOCONTENT;
63                         }
64                         program {
65                                 name, "show_content";
66                                 signal, SIG_SHOW_CONTENT;
67                                 source, SRC_PROG;
68                                 action, STATE_SET "default" 0.0;
69                                 target, PART_CONTENT;
70                                 target, PART_NOCONTENT;
71                         }
72                 }
73         }
74 }