From 876e48baa20213d8265041cfac3034fe92cb0590 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Mon, 20 Dec 2004 11:55:21 +0000 Subject: remove main (once again) --- diff --git a/noncore/net/opietooth/blue-pin/main.cc b/noncore/net/opietooth/blue-pin/main.cc index 29e46ae..1ab1f2e 100644 --- a/noncore/net/opietooth/blue-pin/main.cc +++ b/noncore/net/opietooth/blue-pin/main.cc @@ -10,32 +10,3 @@ using namespace Opie::Core; OPIE_EXPORT_APP( OApplicationFactory ) -int main( int argc, char* argv[] ) -{ - if (argc < 2 ) { - printf("ERR\n"); - exit(0); - } - QCString dir(argv[1] ); - QCString bdaddr( argv[2] ); - QCString name; - if ( argc > 3 ) { - name = argv[3]; - } - QPEApplication a(argc, argv ); - QString status; - if (dir == "out" ) { - status = QObject::tr("Outgoing connection to "); - }else - status = QObject::tr("Incoming connection from "); - status += name; - status += "
"; - status += "[" + bdaddr + "]"; - OpieTooth::PinDlg dlg( status, bdaddr ); - if ( dlg.exec() ) { - printf("PIN:%s\n", dlg.pin().stripWhiteSpace().latin1() ); - }else - printf("ERR\n"); - return 0; -} - -- cgit v0.9.0.2