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

« back to all changes in this revision

Viewing changes to core/utilities/imageeditor/canvas/imagepluginloader.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ============================================================
2
 
 *
3
 
 * This file is a part of digiKam project
4
 
 * http://www.digikam.org
5
 
 *
6
 
 * Date        : 2004-06-04
7
 
 * Description : image plugins loader for image editor.
8
 
 *
9
 
 * Copyright (C) 2004-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
10
 
 * Copyright (C) 2004-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
 
 *
12
 
 * This program is free software; you can redistribute it
13
 
 * and/or modify it under the terms of the GNU General
14
 
 * Public License as published by the Free Software Foundation;
15
 
 * either version 2, or (at your option)
16
 
 * any later version.
17
 
 *
18
 
 * This program is distributed in the hope that it will be useful,
19
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 
 * GNU General Public License for more details.
22
 
 *
23
 
 * ============================================================ */
24
 
 
25
 
#ifndef IMAGEPLUGINLOADER_H
26
 
#define IMAGEPLUGINLOADER_H
27
 
 
28
 
// Qt includes
29
 
 
30
 
#include <QObject>
31
 
#include <QString>
32
 
#include <QPair>
33
 
 
34
 
// Local includes
35
 
 
36
 
#include "digikam_export.h"
37
 
#include "imageplugin.h"
38
 
 
39
 
namespace Digikam
40
 
{
41
 
 
42
 
class SplashScreen;
43
 
 
44
 
class DIGIKAM_EXPORT ImagePluginLoader : public QObject
45
 
{
46
 
 
47
 
public:
48
 
 
49
 
    explicit ImagePluginLoader(QObject* const parent, SplashScreen* const splash = 0);
50
 
    ~ImagePluginLoader();
51
 
 
52
 
    static ImagePluginLoader* instance();
53
 
 
54
 
    QList<ImagePlugin*> pluginList() const;
55
 
    void loadPluginsFromList(const QStringList& list);
56
 
 
57
 
    // Return true if plugin library is loaded in memory.
58
 
    // 'libraryName' is internal plugin library name not i18n.
59
 
    bool pluginLibraryIsLoaded(const QString& libraryName) const;
60
 
 
61
 
    ImagePlugin* pluginInstance(const QString& libraryName) const;
62
 
 
63
 
private:
64
 
 
65
 
    ImagePlugin* pluginIsLoaded(const QString& name) const;
66
 
 
67
 
private:
68
 
 
69
 
    static ImagePluginLoader* m_instance;
70
 
 
71
 
    class ImagePluginLoaderPrivate;
72
 
    ImagePluginLoaderPrivate* const d;
73
 
};
74
 
 
75
 
}  // namespace Digikam
76
 
 
77
 
#endif /* IMAGEPLUGINLOADER_H */