Make reloadEffect() accessible via DBus

svn path=/trunk/KDE/kdebase/workspace/; revision=669434
This commit is contained in:
Rivo Laks 2007-05-29 11:43:30 +00:00
parent e3d45c99f0
commit 7ebe7238e2
3 changed files with 10 additions and 0 deletions

View file

@ -43,5 +43,8 @@
<method name="toggleEffect">
<arg name="name" type="s" direction="in"/>
</method>
<method name="reloadEffect">
<arg name="name" type="s" direction="in"/>
</method>
</interface>
</node>

View file

@ -710,6 +710,12 @@ void Workspace::unloadEffect( const QString& name )
static_cast<EffectsHandlerImpl*>(effects)->unloadEffect( name );
}
void Workspace::reloadEffect( const QString& name )
{
if( effects )
static_cast<EffectsHandlerImpl*>(effects)->reloadEffect( name );
}
void Workspace::slotActivateAttentionWindow()
{
if( attention_chain.count() > 0 )

View file

@ -220,6 +220,7 @@ class Workspace : public QObject, public KDecorationDefines
void loadEffect( const QString& name );
void toggleEffect( const QString& name );
void reloadEffect( const QString& name );
void unloadEffect( const QString& name );