From 3bb01466ed6c58fe78be7e63a1aecfcbedb2a028 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Fri, 7 Jul 2006 02:20:28 +0000 Subject: rename this file so it doesn't appear to be a module by itself git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37279 f38db490-d61c-443f-a65b-d21fe96a405b --- pbx/pbx_kdeconsole_main.cc | 81 ---------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 pbx/pbx_kdeconsole_main.cc (limited to 'pbx/pbx_kdeconsole_main.cc') diff --git a/pbx/pbx_kdeconsole_main.cc b/pbx/pbx_kdeconsole_main.cc deleted file mode 100644 index 0bb2d73e2..000000000 --- a/pbx/pbx_kdeconsole_main.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Asterisk -- A telephony toolkit for Linux. - * - * KDE Console monitor -- Mostly glue code - * - * Copyright (C) 1999, Mark Spencer - * - * Mark Spencer - * - * This program is free software, distributed under the terms of - * the GNU General Public License - */ - -#include "asterisk/module.h" -#include "asterisk/channel.h" -#include "asterisk/logger.h" -#include "asterisk/lock.h" -#include "pbx_kdeconsole.h" - -static char *dtext = "KDE Console Monitor"; - -static int inuse = 0; - -static KAsteriskConsole *w; - -static void verboser(char *stuff, int opos, int replacelast, int complete) -{ - const char *s2[2]; - s2[0] = stuff; - s2[1] = NULL; - if (replacelast) { - printf("Removing %d\n", w->verbose->count()); - w->verbose->removeItem(w->verbose->count()); - } - w->verbose->insertStrList(s2, 1, -1); - w->verbose->setBottomItem(w->verbose->count()); -} - -static int kde_main(int argc, char *argv[]) -{ - KApplication a ( argc, argv ); - w = new KAsteriskConsole(); - a.setMainWidget(w); - w->show(); - ast_register_verbose(verboser); - return a.exec(); -} - -static void *kdemain(void *data) -{ - /* It would appear kde really wants to be main */; - char *argv[1] = { "asteriskconsole" }; - kde_main(1, argv); - return NULL; -} - -extern "C" { - -int unload_module(void) -{ - return inuse; -} - -int load_module(void) -{ - pthread_t t; - pthread_create(&t, NULL, kdemain, NULL); - return 0; -} - -int usecount(void) -{ - return inuse; -} - -char *description(void) -{ - return dtext; -} - -} -- cgit v1.2.3