Akonadi

schema.h
1 /***************************************************************************
2  * SPDX-FileCopyrightText: 2013 Volker Krause <[email protected]> *
3  * *
4  * SPDX-License-Identifier: LGPL-2.0-or-later *
5  ***************************************************************************/
6 
7 #pragma once
8 
9 #include "schematypes.h"
10 
11 namespace Akonadi
12 {
13 namespace Server
14 {
15 /** Methods to access the desired database schema (@see DbInspector for accessing
16  the actual database schema).
17  */
18 class Schema
19 {
20 public:
21  inline virtual ~Schema() = default;
22 
23  /** List of tables in the schema. */
24  virtual QVector<TableDescription> tables() = 0;
25 
26  /** List of relations (N:M helper tables) in the schema. */
28 
29 protected:
30  explicit Schema() = default;
31 
32 private:
33  Q_DISABLE_COPY_MOVE(Schema)
34 };
35 
36 } // namespace Server
37 } // namespace Akonadi
virtual QVector< TableDescription > tables()=0
List of tables in the schema.
Methods to access the desired database schema (.
Definition: schema.h:26
virtual QVector< RelationDescription > relations()=0
List of relations (N:M helper tables) in the schema.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:52:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.