aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>1999-10-27 02:25:34 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>1999-10-27 02:25:34 +0000
commit80d00a57bf387537b3f2508f54e9a452972dd893 (patch)
tree90f8f27d1aa6b1ffc1025a6865d6e3f585492324 /pbx
parent78ef020112000af4547e87dc332b3b623a616713 (diff)
Version 0.1.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-xpbx/pbx_kdeconsole.cc61
1 files changed, 61 insertions, 0 deletions
diff --git a/pbx/pbx_kdeconsole.cc b/pbx/pbx_kdeconsole.cc
new file mode 100755
index 000000000..e1d724178
--- /dev/null
+++ b/pbx/pbx_kdeconsole.cc
@@ -0,0 +1,61 @@
+/*
+ * Asterisk -- A telephony toolkit for Linux.
+ *
+ * KDE Console monitor -- Class implmementation
+ *
+ * Copyright (C) 1999, Adtran Inc. and Linux Support Services, LLC
+ *
+ * Mark Spencer <markster@linux-support.net>
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License
+ */
+
+#include "pbx_kdeconsole.moc"
+
+KAsteriskConsole::KAsteriskConsole() : KTMainWindow()
+{
+ QVBoxLayout *box;
+ QFrame *f;
+
+ f = new QFrame(this);
+
+ setGeometry(100,100,600,400);
+ /* Menus */
+ file = new QPopupMenu();
+ file->insertItem("&Exit", this, SLOT(slotExit()));
+
+ help = kapp->getHelpMenu(TRUE, "KDE Asterisk Console\nby Mark Spencer");
+
+ setCaption("Asterisk Console");
+
+ /* Box */
+ box = new QVBoxLayout(f, 20, 5);
+
+ /* Menu bar creation */
+ menu = new KMenuBar(this);
+ menu->insertItem("&File", file);
+ menu->insertItem("&Help", help);
+ /* Verbose stuff */
+ verbose = new QListBox(f, "verbose");
+ /* Exit button */
+ btnExit = new QPushButton("Exit", f, "exit");
+ btnExit->show();
+ connect(btnExit, SIGNAL(clicked()), this, SLOT(slotExit()));
+
+ box->addWidget(verbose, 1);
+ box->addWidget(btnExit, 0);
+ setView(f, TRUE);
+ statusBar()->message("Ready", 2000);
+}
+
+void KAsteriskConsole::slotExit()
+{
+ close();
+}
+
+void KAsteriskConsole::closeEvent(QCloseEvent *)
+{
+ kapp->quit();
+}
+