phonondefs.h File Reference

#include <QtCore/QtGlobal>
#include "phonon_export.h"

Go to the source code of this file.

Defines

#define  K_DECLARE_PRIVATE(Class)
#define  PHONON_ABSTRACTBASE(classname)
#define  PHONON_OBJECT(classname)
#define  PHONON_HEIR(classname)

Define Documentation

#define K_DECLARE_PRIVATE (   Class )
Value:
inline Class##Private* k_func() { return reinterpret_cast<Class##Private *>(k_ptr); } \
    inline const Class##Private* k_func() const { return reinterpret_cast<const Class##Private *>(k_ptr); } \
    friend class Class##Private;

Definition at line 46 of file phonondefs.h.

#define PHONON_ABSTRACTBASE (   classname )
Value:
protected: \ \
    classname(classname ## Private &dd, QObject *parent); \
private:

Used in class declarations to provide the needed functions. This is used for abstract base classes.

Parameters:
classname The Name of the class this macro is used for.

Example:

 class AbstractEffect : public QObject
 {
   Q _OBJECT
   Q_PROPERTY(int propertyA READ propertyA WRITE setPropertyA)
   PHONON_ABSTRACTBASE(AbstractEffect)
   public:
     int propertyA() const;
     void setPropertyA(int);
 };
See also:
PHONON_OBJECT
PHONON_HEIR

Definition at line 74 of file phonondefs.h.

#define PHONON_OBJECT (   classname )
Value:
public: \ \
    classname(QObject *parent = 0); \
private:

Used in class declarations to provide the needed functions. This is used for classes that inherit QObject directly.

Parameters:
classname The Name of the class this macro is used for.

Example:

 class EffectSettings : public QObject
 {
   Q _OBJECT
   Q_PROPERTY(int propertyA READ propertyA WRITE setPropertyA)
   PHONON_OBJECT(EffectSettings)
   public:
     int propertyA() const;
     void setPropertyA(int);
 };
See also:
PHONON_ABSTRACTBASE
PHONON_HEIR

Definition at line 103 of file phonondefs.h.

#define PHONON_HEIR (   classname )
Value:
public: \ \
    classname(QObject *parent = 0); \

Used in class declarations to provide the needed functions. This is used for classes that inherit another Phonon object.

Parameters:
classname The Name of the class this macro is used for.

Example:

 class ConcreteEffect : public AbstractEffect
 {
   Q _OBJECT
   Q_PROPERTY(int propertyB READ propertyB WRITE setPropertyB)
   PHONON_HEIR(ConcreteEffect)
   public:
     int propertyB() const;
     void setPropertyB(int);
 };
See also:
PHONON_ABSTRACTBASE
PHONON_OBJECT

Definition at line 132 of file phonondefs.h.