~ubuntu-branches/ubuntu/maverick/kdegraphics/maverick-proposed

« back to all changes in this revision

Viewing changes to okular/generators/kimgio/generator_kimgio.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-12-02 14:03:43 UTC
  • mfrom: (1.1.35 upstream)
  • Revision ID: james.westby@ubuntu.com-20091202140343-2732gbkj69g89arq
Tags: 4:4.3.80-0ubuntu1
* New upstream beta release:
  - Add build-depend on shared-desktop-ontologies for nepomuk integration
  - Bump .so versions for libkexiv, libkdcraw and libkipi
  - Update various .install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
         "okular_kimgio",
31
31
         "okular_kimgio",
32
32
         ki18n( "Image Backend" ),
33
 
         "0.1",
 
33
         "0.1.1",
34
34
         ki18n( "A simple image backend" ),
35
35
         KAboutData::License_GPL,
36
 
         ki18n( "© 2005 Albert Astals Cid\n"
 
36
         ki18n( "© 2005, 2009 Albert Astals Cid\n"
37
37
                "© 2006-2007 Pino Toscano\n"
38
38
                "© 2006-2007 Tobias Koenig" )
39
39
    );
76
76
        emit error( i18n( "Unable to load document: %1", reader.errorString() ), -1 );
77
77
        return false;
78
78
    }
 
79
    docInfo.set( Okular::DocumentInfo::MimeType, KMimeType::findByPath(fileName)->name() );
79
80
 
80
81
    pagesVector.resize( 1 );
81
82
 
96
97
        emit error( i18n( "Unable to load document: %1", reader.errorString() ), -1 );
97
98
        return false;
98
99
    }
 
100
    docInfo.set( Okular::DocumentInfo::MimeType, KMimeType::findByContent(fileData)->name() );
99
101
 
100
102
    pagesVector.resize( 1 );
101
103
 
144
146
    kDebug() << "Test";
145
147
}
146
148
 
 
149
const Okular::DocumentInfo * KIMGIOGenerator::generateDocumentInfo()
 
150
{
 
151
    return &docInfo;
 
152
}
 
153
 
147
154
#include "generator_kimgio.moc"
148
155