src/3rdparty/phonon/mmf/ancestormovemonitor.h
changeset 19 fcece45ef507
parent 3 41300fa6a67c
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
    27 
    27 
    28 namespace Phonon
    28 namespace Phonon
    29 {
    29 {
    30 namespace MMF
    30 namespace MMF
    31 {
    31 {
    32 class VideoOutput;
    32 class DsaVideoOutput;
    33 
    33 
    34 class AncestorMoveMonitor : public QObject
    34 class AncestorMoveMonitor : public QObject
    35 {
    35 {
    36     Q_OBJECT
    36     Q_OBJECT
    37 
    37 
    47      *
    47      *
    48      * If the target is already registered, this function causes its
    48      * If the target is already registered, this function causes its
    49      * ancestor list to be updated - therefore it should be called when
    49      * ancestor list to be updated - therefore it should be called when
    50      * the target receives a ParentChange event.
    50      * the target receives a ParentChange event.
    51      */
    51      */
    52     void registerTarget(VideoOutput *target);
    52     void registerTarget(DsaVideoOutput *target);
    53 
    53 
    54     /**
    54     /**
    55      * Remove target from the monitor.
    55      * Remove target from the monitor.
    56      *
    56      *
    57      * The target will no longer receive notification when move events are
    57      * The target will no longer receive notification when move events are
    58      * delivered to its ancestors.
    58      * delivered to its ancestors.
    59      */
    59      */
    60     void unRegisterTarget(VideoOutput *target);
    60     void unRegisterTarget(DsaVideoOutput *target);
    61 
    61 
    62 protected:
    62 protected:
    63     /**
    63     /**
    64      * Function which receives events from the global event filter.
    64      * Function which receives events from the global event filter.
    65      */
    65      */
    75      * Note that the members of the list should be non-redundant; this
    75      * Note that the members of the list should be non-redundant; this
    76      * invariant is checked in debug builds.  Semantically, the value is
    76      * invariant is checked in debug builds.  Semantically, the value is
    77      * therefore a set, however we use QList rather than QSet for
    77      * therefore a set, however we use QList rather than QSet for
    78      * efficiency of iteration.
    78      * efficiency of iteration.
    79      */
    79      */
    80     typedef QList<VideoOutput *> TargetList;
    80     typedef QList<DsaVideoOutput *> TargetList;
    81 
    81 
    82     /**
    82     /**
    83      * Map from widget on which the move event occurs, to widgets which
    83      * Map from widget on which the move event occurs, to widgets which
    84      * descend from it and therefore need to be notified.
    84      * descend from it and therefore need to be notified.
    85      */
    85      */
    90 }
    90 }
    91 }
    91 }
    92 
    92 
    93 QT_END_NAMESPACE
    93 QT_END_NAMESPACE
    94 
    94 
    95 #endif
    95 #endif // !PHONON_MMF_ANCESTORMOVEMONITOR_H