Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Terminating plugins



On Fri, 17 Jan 2003, Marcel Wiesweg wrote:

>Am Freitag, 17. Januar 2003 07:14 schrieb Jan Ekholm:
>> Hi all,
>>
>> However, how is one supposed to terminate a plugin? All normal menus and
>> funtionality seems to obey the "left" or "cancel" buttons, but my plugin
>> doesn't seem to want to quit. The only way is the press "menu" twice.
>> Pressing only once does nothing, and pressing twice brings up the normal
>> toplevel menu, which seems to close my plugin. Is there maybe some
>> extra method I need to override when using raw OSD? The sample "osddemo"
>> doesn't have anything like that as far as I can see, but I haven't tested
>> it either to see how it behaves. This is with vdr-1.1.20.
>
>The cOsdObject-derived object that you return in your MainMenuAction() 
>function receives all key presses (except for Menu, Power, Volume if I recall 
>correctly) in its
>virtual eOSState ProcessKey(eKeys Key)
>For whatever key you like you can return osEnd which will terminate your OSD 
>object.
>Don't forget to delete in its destructor the cOsdBase you created with 
>OpenRaw.

Ah, excellent! Thanks for the help. I thought that if I don't handle any
keys at all then VDR will terminate my plugin on "default" keys. Ok, it's
just a little method to add. Fun, fun!

-- 
"It would seem that you have no useful skill or talent whatsoever," he said.
              "Have you thought of going into teaching?"  
                                                    -- Terry Pratchett, Mort



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index