2013-05-14 17:25:55 +02:00
|
|
|
/* ============================================================
|
|
|
|
* QupZilla - WebKit based browser
|
|
|
|
* Copyright (C) 2013 David Rosca <nowrep@gmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
* ============================================================ */
|
|
|
|
#ifndef DATABASEPASSWORDBACKEND_H
|
|
|
|
#define DATABASEPASSWORDBACKEND_H
|
|
|
|
|
|
|
|
#include "passwordbackend.h"
|
|
|
|
|
|
|
|
class DatabasePasswordBackend : public PasswordBackend
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit DatabasePasswordBackend();
|
|
|
|
|
2013-05-17 15:42:06 +02:00
|
|
|
QString name() const;
|
|
|
|
|
2013-05-14 17:25:55 +02:00
|
|
|
QVector<PasswordEntry> getEntries(const QUrl &url);
|
2013-05-14 22:45:20 +02:00
|
|
|
QVector<PasswordEntry> getAllEntries();
|
2013-05-14 17:25:55 +02:00
|
|
|
|
|
|
|
void addEntry(const PasswordEntry &entry);
|
|
|
|
void updateEntry(const PasswordEntry &entry);
|
|
|
|
void updateLastUsed(const PasswordEntry &entry);
|
2013-05-14 22:45:20 +02:00
|
|
|
|
|
|
|
void removeEntry(const PasswordEntry &entry);
|
|
|
|
void removeAll();
|
2013-05-14 17:25:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DATABASEPASSWORDBACKEND_H
|