sync with master
[platform/framework/native/appfw.git] / src / io / inc / FIo_RegistryCore.h
index ca20a1c..f0e3e1c 100644 (file)
 #include <FBaseColHashMap.h>
 #include <FBaseColIMap.h>
 #include <FBaseResult.h>
+#include <FIoFileLock.h>
+
 
 namespace Tizen { namespace Io
 {
 
+class _FileImpl;
+
 class _RegistryCore
        : public Tizen::Base::Object
 {
@@ -101,6 +105,10 @@ public:
 
        static result ConvertToSecureRegistry(const Tizen::Base::String& plainRegPath, const Tizen::Base::String& secureRegPath, const Tizen::Base::ByteBuffer* key = null);
 
+       FileLock* LockN(FileLockType lockType);
+
+       FileLock* TryToLockN(FileLockType lockType);
+
 protected:
        static result AddSection(Tizen::Base::Collection::LinkedList& sectionList, const Tizen::Base::String& sectionName);
 
@@ -126,10 +134,14 @@ protected:
     bool _write;
     bool _truncate;
     bool _append;
+    bool _update;
        Tizen::Base::Collection::LinkedList _sectionList; // <section_name, list<section_val_name, val>>
        byte* _pBuffer;
        int _length;
 
+private:
+       _FileImpl* __pFileImpl;
+
 }; // _RegistryCore
 
 }} // Tizen::Io