hydrogen 1.2.6
Future.h
Go to the documentation of this file.
1/*
2 * Hydrogen
3 * Copyright(c) 2008-2025 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
4 *
5 * http://www.hydrogen-music.org
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY, without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see https://www.gnu.org/licenses
19 *
20 */
21
22#ifndef H2C_FUTURE_H
23#define H2C_FUTURE_H
24
25#include <core/Object.h>
26#include <memory>
27#include <vector>
28
29#include <QString>
30
31namespace H2Core {
32
33class Drumkit;
35class XMLNode;
36
40class Future : public H2Core::Object<Future> {
42public:
43 static std::shared_ptr<H2Core::Drumkit> loadDrumkit(
44 XMLNode& node, const QString& sDrumkitPath,
45 bool bSilent = false );
46 static std::vector<std::shared_ptr<DrumkitComponent>> loadDrumkitComponentsFromKit(
47 XMLNode* pNode );
48};
49
50};
51
52#endif // H2C_FUTURE_H
#define H2_OBJECT(name)
Definition Object.h:227
Drumkit info.
Definition Drumkit.h:45
Ensures compatibility with XML files created with Hydrogen version >= v2.0.
Definition Future.h:40
static std::shared_ptr< H2Core::Drumkit > loadDrumkit(XMLNode &node, const QString &sDrumkitPath, bool bSilent=false)
Definition Future.cpp:33
static std::vector< std::shared_ptr< DrumkitComponent > > loadDrumkitComponentsFromKit(XMLNode *pNode)
Definition Future.cpp:191
XMLNode is a subclass of QDomNode with read and write values methods.
Definition Xml.h:39