- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

# phonondefs.h

Go to the documentation of this file.

    00001 /*  This file is part of the KDE project
    00002     Copyright (C) 2006-2007 Matthias Kretz <kretz@kde.org>
    00003
    00004     This library is free software; you can redistribute it and/or
    00005     modify it under the terms of the GNU Lesser General Public
    00006     License as published by the Free Software Foundation; either
    00007     version 2.1 of the License, or (at your option) version 3, or any
    00008     later version accepted by the membership of KDE e.V. (or its
    00009     successor approved by the membership of KDE e.V.), Nokia Corporation
    00010     (or its successors, if any) and the KDE Free Qt Foundation, which shall
    00011     act as a proxy defined in Section 6 of version 3 of the license.
    00012
    00013     This library is distributed in the hope that it will be useful,
    00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00016     Lesser General Public License for more details.
    00017
    00018     You should have received a copy of the GNU Lesser General Public
    00019     License along with this library.  If not, see <http://www.gnu.org/licenses/>.
    00020
    00021 */
    00022
    00023 #ifndef PHONONDEFS_H
    00024 #define PHONONDEFS_H
    00025
    00026 #include <QtCore/QtGlobal>
    00027 #include "phonon_export.h"
    00028
    00029 QT_BEGIN_HEADER
    00030 QT_BEGIN_NAMESPACE
    00031
    00032 #ifdef PHONON_BACKEND_VERSION_4_4
    00033 # ifndef PHONON_BACKEND_VERSION_4_3
    00034 #  define PHONON_BACKEND_VERSION_4_3
    00035 # endif
    00036 #endif
    00037 #ifdef PHONON_BACKEND_VERSION_4_3
    00038 # ifndef PHONON_BACKEND_VERSION_4_2
    00039 #  define PHONON_BACKEND_VERSION_4_2
    00040 # endif
    00041 #endif
    00042
    00043 // the following inlines are correct - exclude per line doesn't work for multiline-macros so exclude
    00044 // the whole file for inline checks
    00045 //krazy:excludeall=inline
    00046 #define K_DECLARE_PRIVATE(Class) \
    00047     inline Class##Private* k_func() { return reinterpret_cast<Class##Private *>(k_ptr); } \
    00048     inline const Class##Private* k_func() const { return reinterpret_cast<const Class##Private *>(k_ptr); } \
    00049     friend class Class##Private;
    00050
    00074 #define PHONON_ABSTRACTBASE(classname) \
    00075 protected: \
    00076  \
    00082     classname(classname ## Private &dd, QObject *parent); \
    00083 private:
    00084
    00108 #define PHONON_OBJECT(classname) \
    00109 public: \
    00110  \
    00113     classname(QObject *parent = 0); \
    00114 private:
    00115
    00139 #define PHONON_HEIR(classname) \
    00140 public: \
    00141  \
    00144     classname(QObject *parent = 0); \
    00145
    00146 QT_END_NAMESPACE
    00147 QT_END_HEADER
    00148
    00149 #endif // PHONONDEFS_H