[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: ThumbCreator
From: Bosselut Cyril <bosselut () b1project ! com>
Date: 2004-03-29 16:39:23
Message-ID: 200403291838.14609 () B1ProjectMailServer
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i'm working on a thumbnail plugin for konqui to display album cover stored in
id3v2 tags.
all compile fine but when i launch konqui i get this in the debug output:
kio (KIOJob): error 4 Cannot load ThumbCreator mp3thumbnail
my Makefile.am is like this:
noinst_HEADERS = mp3thumbcreator.h tags.h
kde_module_LTLIBRARIES = libmp3thumbnail.la
libmp3thumbnail_la_SOURCES = mp3thumbnail.cpp mp3thumbcreator.cpp tags.cpp
libmp3thumbnail_la_LIBADD = $(LIB_KIO)
libmp3thumbnail_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN)
kde_services_DATA = mp3thumbnail.desktop
and mp3thumbcreator.cpp:
bool MP3ThumbCreator::create(const QString &path, int width, int height,
QImage &img)
{
Tags *tags = new Tags(path);
// this class read tags and return a QImage (tags->cover)
if(tags->isMP3()){
tags->ReadId3();
if(tags->haveCover){
img = (tags->cover).smoothScale(height, width, QImage::ScaleMin);
return true;
}
else{
return false;
}
}
else{
return false;
}
}
the Tags class work fine (i use it in 2 other apps)
Thanks for your help,
Cyril.
- --
MicroSoft annonce Visual EDLIN pour Windows !
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAaG0W9J4lbJfupC0RAvhxAJ9Z3yHB6nqdp/wtc7/w0rKQSdAncQCgwyia
bT3Gy8MIgp9qDvB0aRz1KcQ=
=7Ine
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic