Bug 119144 - Add DCOP for Rescan project and upload project
Summary: Add DCOP for Rescan project and upload project
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-28 22:46 UTC by Mark A. Taff
Modified: 2006-03-03 21:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark A. Taff 2005-12-28 22:46:08 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    SuSE RPMs
OS:                Linux

Please add a dcop call that does the same thing as Project->Rescan Project Folder...

Please also add a dcop call that does the same thing as Project->Upload Project...
--plus with the option to just mark a new file as uploaded.

The reasoning behind this is it would allow us to add files to a project, such as photos, from a script and still have quanta's project file be accurate, as well as have quanta handle the uploading for us.

OT: I wonder, is it possible/practical to have dcop interfaces automatically generated for every menu signal?

Thanks Andras.

Regards,

Mark Taff
Comment 1 András Manţia 2006-03-03 19:40:51 UTC
On Wednesday 28 December 2005 23:46, Mark A.Taff wrote:
> Please add a dcop call that does the same thing as Project->Rescan
> Project Folder...

See below.
>
> Please also add a dcop call that does the same thing as
> Project->Upload Project... --plus with the option to just mark a new
> file as uploaded.


The latter requires a real DCOP method, indeed.

> The reasoning behind this is it would allow us to add files to a
> project, such as photos, from a script and still have quanta's
> project file be accurate, as well as have quanta handle the uploading
> for us.


To add files, use 
dcop quanta-PID WindowManagerIf addFileToProject url
or
dcop quanta-PID WindowManagerIf addFolderToProject url

> OT: I wonder, is it possible/practical to have dcop interfaces
> automatically generated for every menu signal?


Yes, it is already possible:
dcop quanta-PID Quanta actions 

gives you the possible actions
dcop quanta-PID Quanta activateAction action

activates (executes) the actions.

For the first request:
dcop quanta-PID Quanta activateAction project_rescan
Comment 2 András Manţia 2006-03-03 20:23:07 UTC
On Friday 03 March 2006 20:40, Andr
Comment 3 Mark A. Taff 2006-03-03 21:07:53 UTC
Many Thanks Andras!

Mark