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 K_DECLARE_PRIVATE | ( | Class | ) |
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 | ) |
protected: \ \ classname(classname ## Private &dd, QObject *parent); \ private:
Used in class declarations to provide the needed functions. This is used for abstract base classes.
| 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); };
Definition at line 74 of file phonondefs.h.
| #define PHONON_OBJECT | ( | classname | ) |
public: \ \ classname(QObject *parent = 0); \ private:
Used in class declarations to provide the needed functions. This is used for classes that inherit QObject directly.
| 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); };
Definition at line 103 of file phonondefs.h.
| #define PHONON_HEIR | ( | classname | ) |
public: \ \ classname(QObject *parent = 0); \
Used in class declarations to provide the needed functions. This is used for classes that inherit another Phonon object.
| 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); };
Definition at line 132 of file phonondefs.h.