š | |
Developer's Guide to KKBSwitch |
Prev | š | š Next |
KKBSwitch can be manipulated programmatically via DCOP. It exports an interface named KBSwitchIntf. The interface offers the following methods.
int getNumKbdGroups
();
This method returns the number of configured keyboard groups (layouts).
ASYNC selectNextGroup
();
This method does the same thing as clicking on the KKBSwitch's tray icon, i.e. makes the next keyboard layout active. If in "toggle mode", toggles between the two recently used ones, just like clicking on the tray icon does.
ASYNC selectGroup
(groupno);
int groupno;
This method makes the layout whose number is groupno active (like selecting a layout from the tray icon popup menu).
QStringList getGroupNames
();
This method returns the list of the keyboard layout names, as configured in XKeyboard.
Prev | Home | Next |
Using KKBSwitchš | Up | šCredits and License |