~ubuntu-branches/ubuntu/natty/digikam/natty

1.2.21 by Alessandro Ghersi
Import upstream version 1.0.0~beta1
1
/* ============================================================
2
 *
3
 * This file is a part of digiKam project
4
 * http://www.digikam.org
5
 *
6
 * Date        : 2009-05-04
7
 * Description : Various operations on images
8
 *
1.2.30 by Felix Geyer
Import upstream version 1.4.0
9
 * Copyright (C) 2009-2010 by Marcel Wiesweg <marcel.wiesweg@gmx.de>
1.2.21 by Alessandro Ghersi
Import upstream version 1.0.0~beta1
10
 *
11
 * This program is free software; you can redistribute it
12
 * and/or modify it under the terms of the GNU General
13
 * Public License as published by the Free Software Foundation;
14
 * either version 2, or (at your option)
15
 * any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
 *
22
 * ============================================================ */
23
24
#ifndef IMAGEVIEWUTILITIES_H
25
#define IMAGEVIEWUTILITIES_H
26
27
// Qt includes
28
29
#include <QList>
30
#include <QWidget>
31
32
// KDE includes
33
34
#include <kurl.h>
35
36
// Local includes
37
38
#include "imageinfo.h"
39
40
class KJob;
1.2.30 by Felix Geyer
Import upstream version 1.4.0
41
namespace KIO
42
{
43
    class Job;
44
}
1.2.21 by Alessandro Ghersi
Import upstream version 1.0.0~beta1
45
46
namespace Digikam
47
{
48
class Album;
49
50
class ImageViewUtilities : public QObject
51
{
52
    Q_OBJECT
53
54
public:
55
1.2.30 by Felix Geyer
Import upstream version 1.4.0
56
    ImageViewUtilities(QWidget* parentWidget);
1.2.21 by Alessandro Ghersi
Import upstream version 1.0.0~beta1
57
58
public Q_SLOTS:
59
1.2.30 by Felix Geyer
Import upstream version 1.4.0
60
    void createNewAlbumForInfos(const QList<ImageInfo>& infos, Album* currentAlbum);
1.2.27 by Mark Purcell
Import upstream version 1.1.0
61
    bool deleteImages(const QList<ImageInfo>& infos, bool deletePermanently);
1.2.21 by Alessandro Ghersi
Import upstream version 1.0.0~beta1
62
    void deleteImagesDirectly(const QList<ImageInfo>& infos, bool useTrash);
63
64
    void insertToLightTable(const QList<ImageInfo>& list, const ImageInfo& current, bool emptyBeforeAdding);
65
    void insertToQueueManager(const QList<ImageInfo>& list, const ImageInfo& currentInfo, bool newQueue);
66
    void insertSilentToQueueManager(const QList<ImageInfo>& list, const ImageInfo& currentInfo, int queueid);
67
68
    void notifyFileContentChanged(const KUrl::List& urls);
69
1.2.30 by Felix Geyer
Import upstream version 1.4.0
70
    void openInEditor(const ImageInfo& info, const QList<ImageInfo>& allInfosToOpen, Album* currentAlbum);
1.5.4 by Mark Purcell
Import upstream version 1.0.0~beta6
71
    void rename(const KUrl& imageUrl, const QString& newName);
1.2.30 by Felix Geyer
Import upstream version 1.4.0
72
    void setAsAlbumThumbnail(Album* album, const ImageInfo& imageInfo);
1.2.21 by Alessandro Ghersi
Import upstream version 1.0.0~beta1
73
74
Q_SIGNALS:
75
76
    void editorCurrentUrlChanged(const KUrl& url);
1.5.4 by Mark Purcell
Import upstream version 1.0.0~beta6
77
78
    void imageRenameSucceeded(const KUrl&);
79
    void imageRenameFailed(const KUrl&);
80
    void renamingAborted();
1.2.21 by Alessandro Ghersi
Import upstream version 1.0.0~beta1
81
82
protected Q_SLOTS:
83
84
    void slotDIOResult(KJob* kjob);
85
    void slotRenamed(KIO::Job*, const KUrl &, const KUrl& newURL);
86
87
protected:
88
1.2.30 by Felix Geyer
Import upstream version 1.4.0
89
    QWidget* m_widget;
1.2.21 by Alessandro Ghersi
Import upstream version 1.0.0~beta1
90
};
91
92
} // namespace Digikam
93
94
#endif /* IMAGEVIEWUTILITIES_H */