#compdef dcop

local tmp 

if [ CURRENT -eq 4 ]; then
    tmp=(`$words[1,CURRENT-1] 2>/dev/null | sed -e "s,.* \(.*\)(.*,\1,"`)
else
    tmp=(`$words[1,CURRENT-1] 2>/dev/null | sed -e "s,(default),default,"`)
fi

compadd -a tmp

return 1
