diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2015-10-20 11:31:13 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2015-10-26 09:46:22 +0000 |
commit | 2491a2ba4b7c4bdc04566df84e1b6841c1393bb3 (patch) | |
tree | 8d87a4534b1d8abbaf6e358929b969168901304c /src/manager-lib/applicationdatabase.h | |
parent | 0c9e6ac0803ef00401ddfd08dc7558c20eefd0c4 (diff) |
Initial commit of Pelagicore's ApplicationManager with squashed history.
(minus all 3rd party stuff - we will re-add them later, potentially
changing the way some of them are handled completely)
Change-Id: I55f15b12f0dbe0c4f979206eaa163d4793ff7073
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/manager-lib/applicationdatabase.h')
-rw-r--r-- | src/manager-lib/applicationdatabase.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/manager-lib/applicationdatabase.h b/src/manager-lib/applicationdatabase.h new file mode 100644 index 00000000..02a8bb80 --- /dev/null +++ b/src/manager-lib/applicationdatabase.h @@ -0,0 +1,56 @@ +/**************************************************************************** +** +** Copyright (C) 2015 Pelagicore AG +** Contact: http://www.pelagicore.com/ +** +** This file is part of the Pelagicore Application Manager. +** +** $QT_BEGIN_LICENSE:LGPL3$ +** Commercial License Usage +** Licensees holding valid commercial Pelagicore Application Manager +** licenses may use this file in accordance with the commercial license +** agreement provided with the Software or, alternatively, in accordance +** with the terms contained in a written agreement between you and +** Pelagicore. For licensing terms and conditions, contact us at: +** http://www.pelagicore.com. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPLv3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU General Public License version 3 requirements will be +** met: http://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#pragma once + +#include <QList> +#include <QString> + +#include "exception.h" + +class Application; +class ApplicationDatabasePrivate; + +class ApplicationDatabase +{ +public: + explicit ApplicationDatabase(); + explicit ApplicationDatabase(const QString &fileName); + ~ApplicationDatabase(); + + bool isValid() const; + bool isTemporary() const; + QString errorString() const; + QString name() const; + + QList<const Application *> read() throw (Exception); + void write(const QList<const Application *> &apps) throw (Exception); + +private: + ApplicationDatabasePrivate *d; +}; |