[prev in list] [next in list] [prev in thread] [next in thread]
List: klik-devel
Subject: Re: [klik-devel] CIsoUtl class available
From: "Jason Taylor" <killerkiwi2005 () gmail ! com>
Date: 2007-10-21 19:38:56
Message-ID: 94dd8f6f0710211238i3430c127wc894a147c99c2d7d () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
GNOME is easy there is a goconf key that you set to something like
cmg-thumbnail infile outfile
KDE is a bit harder it requires a compiled module for konq... and KDE is
switching to dolphin and Im not sure how that works....
Jason
On 10/22/07, Lionel Tricon <lionel.tricon@free.fr> wrote:
>
> Hi all,
>
> I just finished to code an object class to ease iso files extraction from
> a
> c++ program. I don't know how to produce a plugin to display a small icon
> from a cmg file on both kde and gnome but i guess that could be useful and
> less tricky than extracting a file from a command line utility.
>
> You just have to call the class with the path of the iso image and after
> read
> file chunck by chunck. Datas are put in memory so that you can do
> everything
> with them.
>
> Something like that :
>
> char buffer[512+1];
> int retval;
> CIsoUtl *IsoUtl = new CIsoUtl("/home/lionel/Desktop/flock.cmg");
> for (int i=0;;i++)
> {
> memset(buffer, '\0', 512+1);
> retval = IsoUtl->ReadFile("/recipe.xml", (char*)buffer, 512, i*512);
> printf("%s\n", buffer);
> if (retval != 512) break;
> }
> delete IsoUtl;
>
> Lionel
>
[Attachment #5 (text/html)]
GNOME is easy there is a goconf key that you set to something \
like<br>cmg-thumbnail infile outfile<br><br>KDE is a bit harder it requires a \
compiled module for konq... and KDE is switching to dolphin and Im not sure how that \
works.... <br><br>Jason<br><br><br>On 10/22/07, <b class="gmail_sendername">Lionel \
Tricon</b> <<a href="mailto:lionel.tricon@free.fr">lionel.tricon@free.fr</a>> \
wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;"> Hi all,<br><br>I just finished to code an object class to ease \
iso files extraction from a<br>c++ program. I don't know how to produce a plugin \
to display a small icon<br>from a cmg file on both kde and gnome but i guess that \
could be useful and <br>less tricky than extracting a file from a command line \
utility.<br><br>You just have to call the class with the path of the iso image and \
after read<br>file chunck by chunck. Datas are put in memory so that you can do \
everything <br>with them.<br><br>Something like that :<br><br>char \
buffer[512+1];<br>int retval;<br>CIsoUtl *IsoUtl = new \
CIsoUtl("/home/lionel/Desktop/flock.cmg");<br>for (int \
i=0;;i++)<br>{<br> memset(buffer, '\0', 512+1); \
<br> retval = IsoUtl->ReadFile("/recipe.xml", \
(char*)buffer, 512, i*512);<br> printf("%s\n", \
buffer);<br> if (retval != 512) break;<br>}<br>delete \
IsoUtl;<br><br>Lionel<br></blockquote></div> <br>
_______________________________________________
klik-devel mailing list
klik-devel@kde.org
https://mail.kde.org/mailman/listinfo/klik-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic