~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to importer/fileutils.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab:
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2009 Aurélien Gâteau <agateau@kde.org>
24
24
class QWidget;
25
25
class KUrl;
26
26
 
27
 
namespace Gwenview {
 
27
namespace Gwenview
 
28
{
28
29
 
29
 
namespace FileUtils {
 
30
namespace FileUtils
 
31
{
30
32
 
31
33
enum RenameResult {
32
 
        RenamedOK,           /** Renamed without problem */
33
 
        RenamedUnderNewName, /** Destination already existed, so rename() added a suffix to make the name unique */
34
 
        Skipped,             /** Destination already existed and contained the same data as source, so rename() just removed the source */
35
 
        RenameFailed         /** Rename failed */
 
34
    RenamedOK,           /** Renamed without problem */
 
35
    RenamedUnderNewName, /** Destination already existed, so rename() added a suffix to make the name unique */
 
36
    Skipped,             /** Destination already existed and contained the same data as source, so rename() just removed the source */
 
37
    RenameFailed         /** Rename failed */
36
38
};
37
39
 
38
40
/**
39
41
 * Compare content of two urls, returns whether they are the same
40
42
 */
41
 
bool contentsAreIdentical(const KUrl& url1, const KUrl& url2, QWidget* authWindow=0);
 
43
bool contentsAreIdentical(const KUrl& url1, const KUrl& url2, QWidget* authWindow = 0);
42
44
 
43
45
/**
44
46
 * Rename src to dst, returns RenameResult
45
47
 */
46
 
RenameResult rename(const KUrl& src, const KUrl& dst, QWidget* authWindow=0);
 
48
RenameResult rename(const KUrl& src, const KUrl& dst, QWidget* authWindow = 0);
47
49
 
48
50
} // namespace
49
51
} // namespace