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

« back to all changes in this revision

Viewing changes to lib/mimetypeutils.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 - A simple image viewer for KDE
4
4
Copyright 2006 Aurelien Gateau <agateau@kde.org>
29
29
class KFileItem;
30
30
class KUrl;
31
31
 
32
 
namespace Gwenview {
 
32
namespace Gwenview
 
33
{
33
34
 
34
 
namespace MimeTypeUtils {
 
35
namespace MimeTypeUtils
 
36
{
35
37
 
36
38
GWENVIEWLIB_EXPORT const QStringList& rasterImageMimeTypes();
37
39
GWENVIEWLIB_EXPORT const QStringList& svgImageMimeTypes();
45
47
GWENVIEWLIB_EXPORT QString urlMimeTypeByContent(const KUrl&);
46
48
 
47
49
enum Kind {
48
 
        KIND_UNKNOWN      = 0,
49
 
        KIND_DIR          = 1,
50
 
        KIND_ARCHIVE      = 1 << 2,
51
 
        KIND_FILE         = 1 << 3,
52
 
        KIND_RASTER_IMAGE = 1 << 4,
53
 
        KIND_SVG_IMAGE    = 1 << 5,
54
 
        KIND_VIDEO        = 1 << 6
 
50
    KIND_UNKNOWN      = 0,
 
51
    KIND_DIR          = 1,
 
52
    KIND_ARCHIVE      = 1 << 2,
 
53
    KIND_FILE         = 1 << 3,
 
54
    KIND_RASTER_IMAGE = 1 << 4,
 
55
    KIND_SVG_IMAGE    = 1 << 5,
 
56
    KIND_VIDEO        = 1 << 6
55
57
};
56
58
Q_DECLARE_FLAGS(Kinds, Kind)
57
59