File indexing completed on 2024-04-28 16:01:31
0001 /****************************************************************************** 0002 * This file is part of the libqgit2 library 0003 * Copyright (c) 2011 Laszlo Papp <djszapi@archlinux.us> 0004 * Copyright (C) 2013 Leonardo Giordani 0005 * 0006 * This library is free software; you can redistribute it and/or 0007 * modify it under the terms of the GNU Lesser General Public 0008 * License as published by the Free Software Foundation; either 0009 * version 2.1 of the License, or (at your option) any later version. 0010 * 0011 * This library is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0014 * Lesser General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU Lesser General Public 0017 * License along with this library; if not, write to the Free Software 0018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 0019 */ 0020 0021 #ifndef LIBQGIT2_DATABASEBACKEND_H 0022 #define LIBQGIT2_DATABASEBACKEND_H 0023 0024 #include <QtCore/QString> 0025 0026 #include "git2.h" 0027 0028 #include "libqgit2_export.h" 0029 0030 namespace LibQGit2 0031 { 0032 /** 0033 * @brief Wrapper class for git_odb_backend. 0034 * Represents a Git object database backend. 0035 * 0036 * @ingroup LibQGit2 0037 * @{ 0038 */ 0039 class LIBQGIT2_EXPORT DatabaseBackend 0040 { 0041 public: 0042 DatabaseBackend(); 0043 0044 DatabaseBackend( const DatabaseBackend& other ); 0045 0046 ~DatabaseBackend(); 0047 0048 public: 0049 git_odb_backend* data() const; 0050 const git_odb_backend* constData() const; 0051 0052 private: 0053 git_odb_backend *m_databaseBackend; 0054 }; 0055 0056 /**@}*/ 0057 } 0058 0059 #endif // LIBQGIT2_DATABASEBACKEND_H