trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: September 2016

Re: [Solved] [trinity-devel] Re: How to test tdeioslave/trash

From: deloptes <deloptes@...>
Date: Fri, 23 Sep 2016 22:49:10 +0200
Michele Calgaro wrote:

> On 2016/09/22 09:56 PM, Michele Calgaro wrote:
>> Yes, I thought your question was deeper in fact.
>> 
>> tdeio system is in principle "simple". When an application needs a file
>> (whether a local one or remote one), is uses a tdeio job to request it. A
>> corresponding tdeio-slave will actually do the work to get the file and
>> send back to the tdeio requesting application. Under the hood, there is
>> much more going on, including task scheduling for asynchronous tasks.
>> 
>> Not sure there is some documentation about it. I recently had to dwell
>> into the tdeio subsystem to debug bug 2685 and I found useful info in the
>> tdelibs html files related to the class involved. See tdeio/tdeio
>> documentations in tdelibs
>>
file:///opt/trinity/share/doc/tde/HTML/en/tdelibs-apidocs/tdeio/tdeio/html/classTDEIO_1_1Job.html
>> and navigate around from there.
>> 
>> Cheers
>>   Michele
>> 
> Forgot to mention that protocols are special instances of tdeio-slaves
> that make a speficic file available through a given protocol.
> For example an ftp tdeio-slaves will make a file on an ftp server looks
> like a local file to any tde application.
> 
> Cheers
>   Michele

Hi,
I was able to get the dialog visible in the properties window.
I also know now how to test such things.

This plugin (library) is service.
In the .desktop file I write now 

[Desktop Entry]
Type=Service
Name=Trash Properties Page
Name[bg]=Свойства на кошчето
X-TDE-Library=ktrashpropsdlgplugin
X-TDE-ServiceTypes=KPropsDlg/Plugin,media/builtin-trash

the file goes in

        /opt/trinity/share/services/ktrashpropsdlgplugin.desktop

After this run
        tdebuildsycoca

Now right click and select properties on the trashbin and watch
in .xsession-err...

tdeio (KSycoca): Trying to open tdesycoca
from /var/tmp/tdecache-emanoil/tdesycoca
tdeio (TDETrader): query for ThumbCreator : returning 14 offers
tdeio (TDETrader): query for media/builtin-trash : returning 0 offers
tdeio (TDEIOJob): stat file:///opt/trinity/share/apps/kdesktop/Desktop/Trash
tdeio_file: FileProtocol::stat details=2
tdeio (TDETrader): query for ThumbCreator : returning 14 offers
tdeio (TDETrader): query for media/builtin-trash : returning 1 offers

The issue now is that it does not save the values set in the dialog window.

regards