Ignore:
Timestamp:
02/16/13 09:02:30 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Implemented hotkey handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/plugin/src/xplra/ServerThread.h

    r39 r45  
    3131//------------------------------------------------------------------------------
    3232
     33#include "HotkeyHandler.h"
     34
    3335#include <hu/varadiistvan/scpl/Thread.h>
    3436
     
    141143    setMultiRequests_t setMultiRequests;
    142144
     145    /**
     146     * The set of hotkeys currently being handled.
     147     */
     148    HotkeyHandler::Hotkeys* hotkeys;
     149
    143150public:
    144151    /**
     
    255262     */
    256263    bool handleShowMessage();
     264
     265    /**
     266     * Handle the COMMAND_REGISTER_HOTKEYS command.
     267     *
     268     * @return true if we can continue, false if the thread should
     269     * quit.
     270     */
     271    bool handleRegisterHotkeys();
     272
     273    /**
     274     * Handle the COMMAND_QUERY_HOTKEYS command.
     275     *
     276     * @return true if we can continue, false if the thread should
     277     * quit.
     278     */
     279    bool handleQueryHotkeys();
     280
     281    /**
     282     * Handle the COMMAND_UNREGISTER_HOTKEYS command.
     283     *
     284     * @return true if we can continue, false if the thread should
     285     * quit.
     286     */
     287    bool handleUnregisterHotkeys();
     288
     289private:
     290    /**
     291     * Destroy the current set of hotkeys, if any.
     292     *
     293     * @return whether there were any hotkeys or not.
     294     */
     295    bool destroyHotkeys();
    257296};
    258297
Note: See TracChangeset for help on using the changeset viewer.