delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / runtime / phonon / libkaudiodevicelist / hardwaredatabase_p.h
blob54688c39d970058fd159a83b4a4246d69a1096d9
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
7 Foundation.
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"
27 namespace Phonon
30 namespace HardwareDatabase
32 class Entry;
33 struct HardwareDatabasePrivate;
35 KAUDIODEVICELIST_EXPORT bool contains(const QString &udi);
36 KAUDIODEVICELIST_EXPORT Entry entryFor(const QString &udi);
38 class Entry
40 public:
41 const QString name;
42 const QString iconName;
43 const int initialPreference;
44 const int isAdvanced;
46 private:
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
55 } // namespace Phonon
56 #endif // PHONON_HARDWAREDATABASE_P_H