~ubuntu-branches/ubuntu/gutsy/kde4libs/gutsy

« back to all changes in this revision

Viewing changes to phonon/base.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-02-21 11:00:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070221110012-6kw8khr9knv6lmg1
Tags: 3.80.3-0ubuntu1
New upstream unstable release

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        class BasePrivate;
30
30
        class BaseDestructionHandler;
31
31
 
32
 
        /**
33
 
         * \internal
34
 
         * Base class for all %Phonon frontend classes.
35
 
         *
36
 
         * \author Matthias Kretz <kretz@kde.org>
37
 
         */
 
32
    /**
 
33
     * Base class for all %Phonon frontend classes. This class is mostly an
 
34
     * implementation detail, except for the isValid() method.
 
35
     *
 
36
     * \author Matthias Kretz <kretz@kde.org>
 
37
     */
38
38
        class PHONONCORE_EXPORT Base
39
39
        {
40
40
                K_DECLARE_PRIVATE( Base )
45
45
                         */
46
46
                        Base( BasePrivate& d );
47
47
 
 
48
            /**
 
49
             * \internal
 
50
             * Delete the object.
 
51
             * calls phononObjectDestroyed for all registered BaseDestructionHandler objects.
 
52
             */
48
53
                        virtual ~Base();
49
54
 
50
55
                public:
51
 
                        /**
52
 
                         * \internal
53
 
                         * This class has its own destroyed signal since some cleanup calls
54
 
                         * need the pointer to the Ifaces object intact. The
55
 
                         * QObject::destroyed signals comes after the Ifaces object was
56
 
                         * deleted.
57
 
                         *
58
 
                         * As this class cannot derive from QObject a simple handler
59
 
                         * interface is used.
60
 
                         */
61
 
                        void addDestructionHandler( BaseDestructionHandler* handler );
62
 
                        /**
63
 
                         * \internal
64
 
                         * This class has its own destroyed signal since some cleanup calls
65
 
                         * need the pointer to the Ifaces object intact. The
66
 
                         * QObject::destroyed signals comes after the Ifaces object was
67
 
                         * deleted.
68
 
                         *
69
 
                         * As this class cannot derive from QObject a simple handler
70
 
                         * interface is used.
71
 
                         */
72
 
                        void removeDestructionHandler( BaseDestructionHandler* handler );
 
56
 
 
57
                        /**
 
58
                         * Tells whether the backend provides an implementation of this
 
59
                         * class.
 
60
                         *
 
61
                         * \return \c true if backend provides an implementation
 
62
                         * \return \c false if the object is not implemented by the backend
 
63
                         */
 
64
                        bool isValid();
73
65
 
74
66
                protected:
75
67
                        /**
86
78
                         * \return the Iface object, might return \c 0
87
79
                         */
88
80
                        QObject* iface();
 
81
 
 
82
        private:
 
83
            Base(const Base&);
 
84
            Base& operator=(const Base&);
89
85
        };
90
86
} //namespace Phonon
91
87
 
92
 
// vim: sw=4 ts=4 tw=80 noet
 
88
// vim: sw=4 ts=4 tw=80
93
89
#endif // PHONON_BASE_H