author | mickeyl <mickeyl> | 2004-12-20 11:55:21 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-12-20 11:55:21 (UTC) |
commit | 876e48baa20213d8265041cfac3034fe92cb0590 (patch) (side-by-side diff) | |
tree | fc4bc2171bd044d2a95136dd211a857f783a752f | |
parent | 4e1958e50a18bfa9a7cd2d41400a753c99fedbf9 (diff) | |
download | opie-876e48baa20213d8265041cfac3034fe92cb0590.zip opie-876e48baa20213d8265041cfac3034fe92cb0590.tar.gz opie-876e48baa20213d8265041cfac3034fe92cb0590.tar.bz2 |
remove main (once again)
-rw-r--r-- | noncore/net/opietooth/blue-pin/main.cc | 29 |
1 files changed, 0 insertions, 29 deletions
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 @@ -12,30 +12 @@ OPIE_EXPORT_APP( OApplicationFactory<OpieTooth::PinDlg> ) -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 += "<br>"; - status += "[" + bdaddr + "]"; - OpieTooth::PinDlg dlg( status, bdaddr ); - if ( dlg.exec() ) { - printf("PIN:%s\n", dlg.pin().stripWhiteSpace().latin1() ); - }else - printf("ERR\n"); - return 0; -} - |