Fix code for TDIS-5396
[framework/osp/social.git] / src / FScl_CalendarbookDbConnector.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 * @file         FScl_CalendarbookDbConnector.h
19 * @brief        This is the header file for the _CalendarbookDbConnector class.
20 *
21 * This header file contains the declarations of the _CalendarbookDbConnector class.
22 */
23
24 #ifndef _FSCL_INTERNAL_CALENDARBOOK_DB_CONNECTOR_H_
25 #define _FSCL_INTERNAL_CALENDARBOOK_DB_CONNECTOR_H_
26
27 namespace Tizen { namespace Base { namespace Runtime
28 {
29 class Mutex;
30 }}}
31
32 namespace Tizen { namespace Social
33 {
34
35 class _CalendarbookDbConnector
36 {
37 public:
38         static result Connect(void);
39         static result Disconnect(void);
40
41 private:
42         _CalendarbookDbConnector(void);
43         ~_CalendarbookDbConnector(void);
44
45         static void InitCalendarbookDbConnector(void);
46
47 private:
48         static int __connectingCount;
49         static Tizen::Base::Runtime::Mutex __mutex;
50         static bool __isInit;
51 };      // _CalendarbookDbConnector
52
53 }}  // Tizen::Social
54
55 #endif //_FSCL_INTERNAL_CALENDARBOOK_DB_CONNECTOR_H_