29c9d0f80fb856ba963741072d8d8a7af5380635
[framework/web/wrt-commons.git] / modules / auto_save_dao / include / wrt-commons / auto-save-dao-rw / auto_save_dao.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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  * This file contains the declaration of auto save dao class.
18  *
19  * @file    auto_save_dao.h
20  * @author  Jihoon Chung (jihoon.chung@samsung.com)
21  * @version 1.0
22  * @brief   This file contains the declaration of auto save dao
23  */
24 #ifndef _AUTO_SAVE_DAO_H_
25 #define _AUTO_SAVE_DAO_H_
26
27 #include <wrt-commons/auto-save-dao-ro/auto_save_dao_read_only.h>
28
29 namespace AutoSaveDB {
30
31 class AutoSaveDAO : public AutoSaveDAOReadOnly
32 {
33   public:
34
35     AutoSaveDAO();
36     virtual ~AutoSaveDAO();
37
38     static void attachDatabaseRW(void);
39     static void detachDatabase(void);
40
41     /**
42      * This method sets Autofill for Webkit
43      */
44     static void setAutoSaveIdPasswd(
45             const DPL::String &url, const AutoSaveData &saveData);
46
47 };
48
49 } // namespace AutoSaveDB
50
51 #endif // _AUTO_SAVE_DAO_H_