add patch
[framework/osp/uifw.git] / src / ui / animations / FUiAnim_EflLayerConfiguration.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0/
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file        FUiAnim_EflLayerConfiguration.cpp
20  * @brief       This file contains implementation of _EflLayer class
21  *
22  * This file contains implementation _EflLayer class.
23  */
24
25 #include "FUiAnim_EflLayerConfiguration.h"
26
27 #define null 0
28
29 namespace Tizen { namespace Ui { namespace Animations
30 {
31 _EflLayerConfiguration* pEflLayerConfiguration = null;
32 _EflLayerConfiguration*
33 _EflLayerConfiguration::GetInstance(void)
34 {
35         if (pEflLayerConfiguration == null)
36         {
37                 pEflLayerConfiguration = new _EflLayerConfiguration();
38         }
39         else
40         {
41                 pEflLayerConfiguration->__refCount++;
42         }
43         return pEflLayerConfiguration;
44 }
45
46 void
47 _EflLayerConfiguration::ReleaseInstance(void)
48 {
49         if (pEflLayerConfiguration->__refCount > 1)
50         {
51                 pEflLayerConfiguration->__refCount--;
52         }
53         else
54         {
55                 delete pEflLayerConfiguration;
56                 pEflLayerConfiguration = null;
57         }
58 }
59
60 void
61 _EflLayerConfiguration::ApplyCustomizedConfig(void* pWin)
62 {
63 }
64
65 _EflLayerConfiguration::_EflLayerConfiguration(void)
66         : __refCount(1)
67 {
68 }
69
70 _EflLayerConfiguration::~_EflLayerConfiguration(void)
71 {
72 }
73 }}}//namespace Tizen { namespace Ui { namespace Animations