1 /* This file is part of the KDE project
2 Copyright (C) 2007 Matthias Kretz <kretz@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 or version 3 as published by the Free Software
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
21 #ifndef PHONON_HARDWAREDATABASE_P_H
22 #define PHONON_HARDWAREDATABASE_P_H
24 #include <QtCore/QString>
25 #include "kaudiodevicelist_export.h"
30 namespace HardwareDatabase
33 struct HardwareDatabasePrivate
;
35 KAUDIODEVICELIST_EXPORT
bool contains(const QString
&udi
);
36 KAUDIODEVICELIST_EXPORT Entry
entryFor(const QString
&udi
);
42 const QString iconName
;
43 const int initialPreference
;
47 friend struct HardwareDatabasePrivate
;
48 friend Entry
entryFor(const QString
&);
49 inline Entry(const QString
&_name
, const QString
&_iconName
, int _initialPreference
, int _isAdvanced
)
50 : name(_name
), iconName(_iconName
), initialPreference(_initialPreference
), isAdvanced(_isAdvanced
) {}
51 inline Entry() : initialPreference(0), isAdvanced(0) {}
53 } // namespace HardwareDatabase
56 #endif // PHONON_HARDWAREDATABASE_P_H