KKBSwitch – keyboard layout indicator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kbswitchintf.h 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /***************************************************************************
  2. kbswitchintf.h - description
  3. -------------------
  4. begin : Sun Aug 12 2001
  5. copyright : (C) 2001 by Leonid Zeitlin
  6. email : lz@europe.com
  7. ***************************************************************************/
  8. /***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************/
  16. #ifndef KBSWITCHINTF_H
  17. #define KBSWITCHINTF_H
  18. #include <dcopobject.h>
  19. #include <ntqobject.h>
  20. #include <ntqstringlist.h>
  21. #include "kbconfig.h"
  22. /**This class implements DCOP bindings for KBSwitch
  23. *@author Leonid Zeitlin
  24. */
  25. /* Interesting to note: moc failed on this file when the k_dcop section immediately
  26. followed the signals section (the error message was "syntax error"). After I
  27. separated the signals and k_dcop sections with the public section everything worked.
  28. Apparently, the k_dcop "keyword" confuses moc, which is only natural given that
  29. moc doesn't know about dcopidl! */
  30. class KBSwitchIntf : public TQObject, public DCOPObject {
  31. K_DCOP
  32. Q_OBJECT
  33. signals:
  34. void nextGroupSelected();
  35. void groupSelected(int groupno);
  36. public:
  37. KBSwitchIntf(TQObject *parent, KBConfig *conf);
  38. ~KBSwitchIntf();
  39. private:
  40. KBConfig *m_kbconf;
  41. k_dcop:
  42. int getNumKbdGroups();
  43. ASYNC selectNextGroup();
  44. ASYNC selectGroup(int groupno);
  45. TQStringList getGroupNames();
  46. };
  47. #endif