/****************************************************************************

 KHotKeys -  (C) 2000 Lubos Lunak <l.lunak@email.cz>

 khotkeys.h  -

 $Id: khotkeys.h,v 1.7 2002/05/18 11:44:04 gioele Exp $

****************************************************************************/

#ifndef __khotkeys_H
#define __khotkeys_H

#include <kuniqueapplication.h>
#include <qtimer.h>
#include <dcopobject.h>
#include <kurifilter.h>
#include <kglobalaccel.h>

#include "khotkeysglobal.h"

class KHotKeysApp
    : public KUniqueApplication
    {
    Q_OBJECT
    K_DCOP
    public:
        KHotKeysApp();
        virtual ~KHotKeysApp();
    protected:
        //virtual bool x11EventFilter(XEvent *);
        KGlobalAccel* accel;
        KHotData_dict data;
        void start_general( const QString& action_P );
        QString get_desktop_file( const QString& action_P );
        void start_menuentry( const QString& action_P );
    protected slots:
        void accel_activated( const QString& action_P, const QString&, const KKeySequence& );
    public:
    k_dcop:
        virtual ASYNC reread_configuration();
    };

//****************************************************************************
// Inline
//****************************************************************************

#endif
