2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file FApp_LongevityManager.h
19 * @brief This is the header file of the %_LongevityManager class.
21 * This header file contains the declarations of the %_LongevityManager class.
24 #ifndef _FAPP_INTERNAL_LONGEVITY_MANAGER_H_
25 #define _FAPP_INTERNAL_LONGEVITY_MANAGER_H_
27 #include <FBaseObject.h>
28 #include <FBaseColArrayList.h>
30 namespace Tizen { namespace App
34 * @class _LongevityManager
38 * This class controls the lifetime of heap-based singleton.
40 class _LongevityManager
43 _LongevityManager(void);
45 ~_LongevityManager(void);
47 static _LongevityManager& GetInstance(void);
49 result RegisterOwnership(Tizen::Base::Object& object);
52 _LongevityManager(const _LongevityManager& rhs);
54 _LongevityManager& operator=(const _LongevityManager& rhs);
57 Tizen::Base::Collection::ArrayList __objectList;
63 #endif //_FAPP_INTERNAL_LONGEVITY_MANAGER_H_