1
/***************************************************************************
2
kbswitchintf.h - description
4
begin : Sun Aug 12 2001
5
copyright : (C) 2001 by Leonid Zeitlin
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
18
#ifndef KBSWITCHINTF_H
19
#define KBSWITCHINTF_H
21
#include <dcopobject.h>
23
#include <qstringlist.h>
27
/**This class implements DCOP bindings for KBSwitch
28
*@author Leonid Zeitlin
31
/* Interesting to note: moc failed on this file when the k_dcop section immediately
32
followed the signals section (the error message was "syntax error"). After I
33
separated the signals and k_dcop sections with the public section everything worked.
34
Apparently, the k_dcop "keyword" confuses moc, which is only natural given that
35
moc doesn't know about dcopidl! */
36
class KBSwitchIntf : public QObject, public DCOPObject {
40
void nextGroupSelected();
41
void groupSelected(int groupno);
43
KBSwitchIntf(QObject *parent, KBConfig *conf);
48
int getNumKbdGroups();
49
ASYNC selectNextGroup();
50
ASYNC selectGroup(int groupno);
51
QStringList getGroupNames();