~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/utilities/kipiiface/kipipluginloader.h

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-09-27 21:41:30 UTC
  • mfrom: (1.2.43)
  • mto: This revision was merged to the branch mainline in revision 86.
  • Revision ID: package-import@ubuntu.com-20120927214130-i8v3ufr21nesp29i
Tags: 4:3.0.0~beta1a-1
* New upstream release

* Fix "wrongly conflicts phonon-backend-vlc" dropped (Closes: #688142)
* debian/watch include download.kde.org

* digikam 3.0.0 uses features from unreleased kdegraphics >=4.10 & ships 
a private version of the kdegraphics libs - this is not the Debian way :-(
* Unsatisfactory Conflicts: libkipi8, libkexiv2-10, libkdcraw20, libksane0
* Suspend digikam-dbg >130Mb

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2012-10-03
7
7
 * Description : kipi loader implementation
8
8
 *
9
 
 * Copyright (C) 2012      by Supreet Pal Singh <supreetpal@gmail.com>
10
9
 * Copyright (C) 2004-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
10
 * Copyright (C) 2012      by Victor Dodon <dodonvictor at gmail dot com>
11
11
 *
12
12
 * This program is free software; you can redistribute it
13
13
 * and/or modify it under the terms of the GNU General
29
29
 
30
30
#include <QObject>
31
31
#include <QList>
32
 
#include <QString>
33
32
 
34
33
// LibKIPI includes
35
34
 
39
38
 
40
39
class KActionCollection;
41
40
 
 
41
using namespace KIPI;
 
42
 
42
43
namespace Digikam
43
44
{
44
45
 
56
57
    KipiPluginLoader(QObject* const parent, SplashScreen* const splash);
57
58
 
58
59
    /** Return a list of all plugin actions accordingly of plugin category.
59
 
     *  See KIPI::Category enum for details.
 
60
     *  See Category enum for details.
60
61
     */
61
 
    QList<QAction*> kipiActionsByCategory(KIPI::Category cat) const;
 
62
    QList<QAction*> kipiActionsByCategory(Category cat) const;
62
63
 
63
64
    /** Return the instance of action collection for all KIPI plugins.
64
65
     */
65
66
    KActionCollection* pluginsActionCollection() const;
66
67
 
67
 
    /** Plug or unplug plugins actions list to application.
68
 
     */
69
 
    void kipiPlugActions(bool unplug = false);
70
 
 
71
68
    /** Return the instance of this singleton plugin loader.
72
69
     */
73
70
    static KipiPluginLoader* instance();
74
71
 
75
72
private Q_SLOTS:
76
73
 
77
 
    /** Called by KIPI::PluginLoader when plugins list must be re-loaded in application.
 
74
    /** Called by PluginLoader when plugins list must be re-loaded in application.
78
75
     */
79
76
    void slotKipiPluginPlug();
80
77
 
84
81
     */
85
82
    ~KipiPluginLoader();
86
83
 
87
 
    /** Load all enabled plugins in application accordingly with KIPI setup page.
88
 
     */
89
 
    void loadPlugins();
90
 
 
91
 
    /** Check if a category exist, else fill it with an single action displaying an "Empty" message.
92
 
     */
93
 
    void checkEmptyCategory(KIPI::Category cat);
94
 
 
95
 
    /** Wrapper to return plugin category name for KDE Shortcuts Editor.
96
 
     */
97
 
    QString categoryName(KIPI::Category cat) const;
98
 
 
99
84
private:
100
85
 
101
86
    static KipiPluginLoader* m_instance;
102
87
 
103
 
    class KipiPluginLoaderPriv;
104
 
    KipiPluginLoaderPriv* const d;
 
88
    class Private;
 
89
    Private* const d;
105
90
};
106
91
 
107
92
}  // namespace Digikam