/* This file is part of the KDE project

   Copyright (C) 2007 by Lukas Appelhans <l.appelhans@gmx.de>
   Copyright (C) 2008 by Javier Goday <jgoday@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 2 of the License, or (at your option) any later version.
*/
#ifndef TRANSFERHISTORYSTORE_SQLITE_P_H
#define TRANSFERHISTORYSTORE_SQLITE_P_H

#include <QList>
#include <QSqlDatabase>

class TransferHistoryItem;
class SQLiteStore : public TransferHistoryStore
{
    Q_OBJECT
public:
    SQLiteStore(const QString &database);
    ~SQLiteStore();

public slots:
    void load();
    void clear();
    void saveItem(const TransferHistoryItem &item);
    void deleteItem(const TransferHistoryItem &item);

private:
    QSqlDatabase sql();
    void createTables();

private:
    QString m_dbName;
    QSqlDatabase m_sql;
};
#endif
