Bug 119144

Summary: Add DCOP for Rescan project and upload project
Product: quanta Reporter: Mark A. Taff <kde>
Component: generalAssignee: András Manţia <amantia>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

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