Diffstat (limited to 'noncore/tools/remote/lirchandler.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/tools/remote/lirchandler.cpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/noncore/tools/remote/lirchandler.cpp b/noncore/tools/remote/lirchandler.cpp index 263b740..ec1e275 100644 --- a/noncore/tools/remote/lirchandler.cpp +++ b/noncore/tools/remote/lirchandler.cpp | |||
@@ -20,5 +20,4 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
20 | #include <sys/socket.h> | 20 | #include <sys/socket.h> |
21 | #include <sys/types.h> | 21 | #include <sys/types.h> |
22 | #include <sys/un.h> | ||
23 | #include <unistd.h> | 22 | #include <unistd.h> |
24 | #include <errno.h> | 23 | #include <errno.h> |
@@ -28,4 +27,5 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
28 | #include <qobject.h> | 27 | #include <qobject.h> |
29 | #include <opie2/oprocess.h> | 28 | #include <opie2/oprocess.h> |
29 | #include <qpe/qcopenvelope_qws.h> | ||
30 | 30 | ||
31 | #include "lirchandler.h" | 31 | #include "lirchandler.h" |
@@ -269,2 +269,25 @@ bool LircHandler::isLircdRunning(void) | |||
269 | return (OProcess::processPID("lircd") != 0); | 269 | return (OProcess::processPID("lircd") != 0); |
270 | } | 270 | } |
271 | |||
272 | bool LircHandler::setupModules(void) | ||
273 | { | ||
274 | // Remove IrDA modules which get in the way | ||
275 | system("rmmod ircomm-tty ircomm"); | ||
276 | // Load LIRC device driver | ||
277 | system("modprobe lirc_sir"); | ||
278 | return true; | ||
279 | } | ||
280 | |||
281 | bool LircHandler::cleanupModules(void) | ||
282 | { | ||
283 | // Unload LIRC device driver | ||
284 | system("rmmod lirc_sir"); | ||
285 | // Load IrDA drivers back in | ||
286 | system("modprobe ircomm-tty"); | ||
287 | return true; | ||
288 | } | ||
289 | |||
290 | void LircHandler::disableIrDA(void) | ||
291 | { | ||
292 | QCopEnvelope e("QPE/IrDaApplet", "disableIrda()"); | ||
293 | } | ||