-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 | |||
@@ -5,37 +5,8 @@ | |||
5 | #include <qpe/qpeapplication.h> | 5 | #include <qpe/qpeapplication.h> |
6 | #include <opie2/oapplicationfactory.h> | 6 | #include <opie2/oapplicationfactory.h> |
7 | 7 | ||
8 | #include "pindlg.h" | 8 | #include "pindlg.h" |
9 | 9 | ||
10 | using namespace Opie::Core; | 10 | using namespace Opie::Core; |
11 | OPIE_EXPORT_APP( OApplicationFactory<OpieTooth::PinDlg> ) | 11 | OPIE_EXPORT_APP( OApplicationFactory<OpieTooth::PinDlg> ) |
12 | 12 | ||
13 | int main( int argc, char* argv[] ) | ||
14 | { | ||
15 | if (argc < 2 ) { | ||
16 | printf("ERR\n"); | ||
17 | exit(0); | ||
18 | } | ||
19 | QCString dir(argv[1] ); | ||
20 | QCString bdaddr( argv[2] ); | ||
21 | QCString name; | ||
22 | if ( argc > 3 ) { | ||
23 | name = argv[3]; | ||
24 | } | ||
25 | QPEApplication a(argc, argv ); | ||
26 | QString status; | ||
27 | if (dir == "out" ) { | ||
28 | status = QObject::tr("Outgoing connection to "); | ||
29 | }else | ||
30 | status = QObject::tr("Incoming connection from "); | ||
31 | status += name; | ||
32 | status += "<br>"; | ||
33 | status += "[" + bdaddr + "]"; | ||
34 | OpieTooth::PinDlg dlg( status, bdaddr ); | ||
35 | if ( dlg.exec() ) { | ||
36 | printf("PIN:%s\n", dlg.pin().stripWhiteSpace().latin1() ); | ||
37 | }else | ||
38 | printf("ERR\n"); | ||
39 | return 0; | ||
40 | } | ||
41 | |||