apply dynamic singleton pattern to internal classes and add retry code to AppWidgetMa...
[platform/framework/native/shell.git] / src / inc / FShell_LockManagerProxy.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
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 /**
18  * @file        FShell_LockManagerProxy.h
19  * @brief       This is the header file of the _LockManagerProxy class.
20  */
21
22 #ifndef _FSHELL_INTERNAL_LOCK_MANAGER_PROXY_H_
23 #define _FSHELL_INTERNAL_LOCK_MANAGER_PROXY_H_
24
25 #include <FBaseObject.h>
26
27 namespace Tizen { namespace Io { class _IpcClient; } }
28
29 namespace Tizen { namespace Shell
30 {
31
32 /**
33  * @class        _LockManagerProxy
34  * @brief
35  * @since 2.1
36  */
37 class _LockManagerProxy
38         : public Tizen::Base::Object
39 {
40 public:
41         static _LockManagerProxy* GetInstance(void);
42
43         result Construct(void);
44
45         result Unlock();
46
47 private:
48         _LockManagerProxy(void);
49
50         virtual ~_LockManagerProxy(void);
51
52         _LockManagerProxy(const _LockManagerProxy& rhs);
53
54         _LockManagerProxy& operator =(const _LockManagerProxy& rhs);
55
56         static void InitSingleton(void);
57         static void DestroySingleton(void);
58
59
60 private:
61         static _LockManagerProxy* __pTheInstance;
62         Tizen::Io::_IpcClient* __pIpcClient;
63
64         friend struct std::default_delete< _LockManagerProxy >;
65 }; // _LockManagerProxy
66
67 } } // Tizen::Shell
68
69 #endif // _FSHELL_INTERNAL_LOCK_MANAGER_PROXY_H_