• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kget

  • sources
  • kde-4.12
  • kdenetwork
  • kget
  • core
transferhistorystore_sqlite_p.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2 
3  Copyright (C) 2007 by Lukas Appelhans <l.appelhans@gmx.de>
4  Copyright (C) 2008 by Javier Goday <jgoday@gmail.com>
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 */
11 #ifndef TRANSFERHISTORYSTORE_SQLITE_P_H
12 #define TRANSFERHISTORYSTORE_SQLITE_P_H
13 
14 #include "transferhistorystore.h"
15 
16 #include <QList>
17 #include <QSqlDatabase>
18 
19 class TransferHistoryItem;
20 class SQLiteStore : public TransferHistoryStore
21 {
22  Q_OBJECT
23 public:
24  SQLiteStore(const QString &database);
25  ~SQLiteStore();
26 
27 public slots:
28  void load();
29  void clear();
30  void saveItem(const TransferHistoryItem &item);
31  void saveItems(const QList<TransferHistoryItem> &items);
32  void deleteItem(const TransferHistoryItem &item);
33 
34 private:
35  QSqlDatabase sql();
36  void createTables();
37 
38 private:
39  QString m_dbName;
40  QSqlDatabase m_sql;
41 };
42 #endif
TransferHistoryItem
Definition: transferhistorystore.h:23
transferhistorystore.h
TransferHistoryStore
Definition: transferhistorystore.h:53
SQLiteStore::clear
void clear()
SQLiteStore::~SQLiteStore
~SQLiteStore()
SQLiteStore
Definition: transferhistorystore_sqlite_p.h:20
TransferHistoryStore::items
QList< TransferHistoryItem > items() const
Definition: transferhistorystore.cpp:145
SQLiteStore::deleteItem
void deleteItem(const TransferHistoryItem &item)
SQLiteStore::saveItems
void saveItems(const QList< TransferHistoryItem > &items)
SQLiteStore::SQLiteStore
SQLiteStore(const QString &database)
SQLiteStore::saveItem
void saveItem(const TransferHistoryItem &item)
SQLiteStore::load
void load()
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal