~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to libs/flake/KoDockRegistry.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define KODOCKREGISTRY_
22
22
 
23
23
#include "KoGenericRegistry.h"
24
 
#include "KoDockFactory.h"
 
24
#include "KoDockFactoryBase.h"
25
25
#include "flake_export.h"
26
26
 
27
27
#include <QObject>
30
30
 * This singleton class keeps a register of all available dockers,
31
31
 * or rather, of the factories that can create the QDockWidget instances
32
32
 * for the mainwindows.
33
 
 * Note that adding your KoDockFactory to this registry will mean it will automatically be
 
33
 * Note that adding your KoDockFactoryBase to this registry will mean it will automatically be
34
34
 * added to an application, no extra code is required for that.
35
35
 *
36
 
 * @see KoCanvasObserver
 
36
 * @see KoCanvasObserverBase
37
37
 */
38
 
class FLAKE_EXPORT KoDockRegistry : public QObject, public KoGenericRegistry<KoDockFactory*>
 
38
class FLAKE_EXPORT KoDockRegistry : public QObject, public KoGenericRegistry<KoDockFactoryBase*>
39
39
{
40
40
    Q_OBJECT
41
41
 
46
46
     * Return an instance of the KoDockRegistry
47
47
     * Create a new instance on first call and return the singleton.
48
48
     */
49
 
    static KoDockRegistry* instance();
 
49
    static KoDockRegistry *instance();
50
50
 
51
51
private:
52
52
    KoDockRegistry();
53
53
    KoDockRegistry(const KoDockRegistry&);
54
54
    KoDockRegistry operator=(const KoDockRegistry&);
55
55
    void init();
 
56
 
 
57
    class Private;
 
58
    Private *d;
56
59
};
57
60
 
58
61
#endif