add more spacing
[personal-kdebase.git] / runtime / phonon / kded-module / hardwaredatabase.h
blob0f513959eb68edb91c55285c88a467bcae108ed3
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 PS_HARDWAREDATABASE_H
22 #define PS_HARDWAREDATABASE_H
24 #include <QtCore/QString>
26 namespace PS
29 namespace HardwareDatabase
31 class Entry;
32 struct HardwareDatabasePrivate;
34 bool contains(const QString &udi);
35 Entry entryFor(const QString &udi);
37 class Entry
39 public:
40 const QString name;
41 const QString iconName;
42 const int initialPreference;
43 const int isAdvanced;
45 private:
46 friend struct HardwareDatabasePrivate;
47 friend Entry entryFor(const QString &);
48 inline Entry(const QString &_name, const QString &_iconName, int _initialPreference, int _isAdvanced)
49 : name(_name), iconName(_iconName), initialPreference(_initialPreference), isAdvanced(_isAdvanced) {}
50 inline Entry() : initialPreference(0), isAdvanced(0) {}
52 } // namespace HardwareDatabase
54 } // namespace PS
55 #endif // PS_HARDWAREDATABASE_H