Merge "Remove build warning and add temporary getter of privacy name" into tizen_2.1
[platform/framework/native/appfw.git] / src / io / inc / FIo_SecureRegistry.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        FIo_SecureRegistry.h
20  * @brief       This is the header file for the %_SecureRegistry class.
21  */
22
23 #ifndef _FIO_INTERNAL_SECUREREGISTRY_H_
24 #define _FIO_INTERNAL_SECUREREGISTRY_H_
25
26 #include <FIo_NormalRegistry.h>
27 #include <FIo_RegistryCore.h>
28
29 namespace Tizen { namespace Io
30 {
31
32 class _SecureRegistry
33         : public _RegistryCore
34 {
35
36 public:
37         _SecureRegistry(void);
38
39         virtual ~_SecureRegistry(void);
40
41         result Construct(const Tizen::Base::String& regPath, const char* pOpenMode, const Tizen::Base::ByteBuffer* pSecretKey);
42
43         result Flush(void);
44
45 private:
46         _SecureRegistry(const _SecureRegistry& rhs);
47
48         _SecureRegistry& operator =(const _SecureRegistry& rhs);
49
50         Tizen::Base::ByteBuffer* __pSecretKey;
51
52 }; // _SecureRegistry
53
54 }} // Tizen::Io
55
56 #endif //_FIO_INTERNAL_SECUREREGISTRY_H_
57