Merge "Change the way to conver Mbs to Wcs and vice versa" into tizen_2.1
[platform/framework/native/appfw.git] / src / app / FApp_LongevityManager.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 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         FApp_LongevityManager.h
20  * @brief       This is the header file of the %_LongevityManager class.
21  *
22  * This header file contains the declarations of the %_LongevityManager class.
23  */
24
25 #ifndef _FAPP_INTERNAL_LONGEVITY_MANAGER_H_
26 #define _FAPP_INTERNAL_LONGEVITY_MANAGER_H_
27
28 #include <FBaseObject.h>
29 #include <FBaseColArrayList.h>
30
31 namespace Tizen { namespace App
32 {
33
34 /**
35  * @class        _LongevityManager
36  * @brief
37  * @since 2.1
38  *
39  * This class controls the lifetime of heap-based singleton.
40  */
41 class _LongevityManager
42 {
43 public:
44         _LongevityManager(void);
45
46         ~_LongevityManager(void);
47
48         static _LongevityManager& GetInstance(void);
49
50         result RegisterOwnership(Tizen::Base::Object& object);
51
52 private:
53         _LongevityManager(const _LongevityManager& rhs);
54
55         _LongevityManager& operator=(const _LongevityManager& rhs);
56
57 private:
58         Tizen::Base::Collection::ArrayList      __objectList;
59
60 };
61
62 } } // Tizen::App
63
64 #endif //_FAPP_INTERNAL_LONGEVITY_MANAGER_H_
65