summaryrefslogtreecommitdiff
authorkorovkin <korovkin>2006-03-20 21:44:55 (UTC)
committer korovkin <korovkin>2006-03-20 21:44:55 (UTC)
commit74546adb68bd3f17a75003671407c4a4e6b09e73 (patch) (unidiff)
tree489034b13c803dca3e0e7e487e9465189a988c77
parent14fc21051eb3ff92527fd9ddeaf117009bd74af2 (diff)
downloadopie-74546adb68bd3f17a75003671407c4a4e6b09e73.zip
opie-74546adb68bd3f17a75003671407c4a4e6b09e73.tar.gz
opie-74546adb68bd3f17a75003671407c4a4e6b09e73.tar.bz2
Added file sending.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/obexftpdialog.cpp99
-rw-r--r--noncore/net/opietooth/manager/obexftpdialog.h2
-rw-r--r--noncore/net/opietooth/manager/obexftpdialogbase.cpp89
-rw-r--r--noncore/net/opietooth/manager/obexftpdialogbase.h18
-rw-r--r--noncore/net/opietooth/manager/obexftpdialogbase.ui211
5 files changed, 283 insertions, 136 deletions
diff --git a/noncore/net/opietooth/manager/obexftpdialog.cpp b/noncore/net/opietooth/manager/obexftpdialog.cpp
index c77d49d..80a81b4 100644
--- a/noncore/net/opietooth/manager/obexftpdialog.cpp
+++ b/noncore/net/opietooth/manager/obexftpdialog.cpp
@@ -13,7 +13,13 @@
13 */ 13 */
14#include <sys/stat.h> 14#include <sys/stat.h>
15#include <sys/types.h>
16#include <unistd.h>
17#include <string.h>
18#include <errno.h>
15#include <qpushbutton.h> 19#include <qpushbutton.h>
16#include <qmessagebox.h> 20#include <qmessagebox.h>
17#include <qmultilineedit.h> 21#include <qmultilineedit.h>
22#include <qspinbox.h>
23#include <qcombobox.h>
18#include <qlistview.h> 24#include <qlistview.h>
19#include <qprogressbar.h> 25#include <qprogressbar.h>
@@ -50,4 +56,5 @@ ObexFtpDialog::ObexFtpDialog(const QString& device, int port,
50{ 56{
51 client = NULL; 57 client = NULL;
58 nRetries = 3;
52 transport = OBEX_TRANS_BLUETOOTH; 59 transport = OBEX_TRANS_BLUETOOTH;
53 use_conn = TRUE; 60 use_conn = TRUE;
@@ -69,4 +76,5 @@ ObexFtpDialog::ObexFtpDialog(const QString& device, int port,
69 destFile->setNewVisible(false); 76 destFile->setNewVisible(false);
70 localLayout->addWidget(destFile); 77 localLayout->addWidget(destFile);
78 nReries->setValue(nRetries);
71 connect(browseOK, SIGNAL(clicked()), SLOT(slotBrowse())); 79 connect(browseOK, SIGNAL(clicked()), SLOT(slotBrowse()));
72 connect(fileList, SIGNAL(clicked(QListViewItem*)), 80 connect(fileList, SIGNAL(clicked(QListViewItem*)),
@@ -75,4 +83,7 @@ ObexFtpDialog::ObexFtpDialog(const QString& device, int port,
75 SIGNAL(clicked()), 83 SIGNAL(clicked()),
76 SLOT(getFile())); 84 SLOT(getFile()));
85 connect(putButton,
86 SIGNAL(clicked()),
87 SLOT(putFile()));
77 connect(destFile, 88 connect(destFile,
78 SIGNAL(dirSelected (const QString&)), 89 SIGNAL(dirSelected (const QString&)),
@@ -95,9 +106,10 @@ void ObexFtpDialog::slotBrowse()
95 stat_entry_t* ent; //Directory entry 106 stat_entry_t* ent; //Directory entry
96 void *dir; //Directory to read 107 void *dir; //Directory to read
97 const uint8_t use_uuid[] = __UUID_FBS_bytes; 108 const uint8_t* use_uuid; //uuid
98 int len = sizeof(UUID_FBS); 109 int len; //uuid length
99 FileListItem* root; //root node 110 FileListItem* root; //root node
100 stat_entry_t* st; //File statistics
101 int fsize; //file size 111 int fsize; //file size
112 bool numOk; //true if the string is a number
113 int tmp; //just a temp var
102 114
103 status(tr("Connecting to ") + m_device); 115 status(tr("Connecting to ") + m_device);
@@ -106,5 +118,22 @@ void ObexFtpDialog::slotBrowse()
106 fileList->clear(); 118 fileList->clear();
107 progressStatus = 0; 119 progressStatus = 0;
120 fileProgress->setTotalSteps(MAX_PROGRESS);
108 fileProgress->reset(); 121 fileProgress->reset();
122
123 //Get parameters
124 tmp = nReries->text().toInt(&numOk);
125 if (numOk)
126 nRetries = tmp;
127 if (uuidType->currentText() == "FBS") {
128 use_uuid = UUID_FBS;
129 len = sizeof(UUID_FBS);
130 } else if (uuidType->currentText() == "S45") {
131 use_uuid = UUID_S45;
132 len = sizeof(UUID_S45);
133 } else {
134 use_uuid = UUID_FBS;
135 len = sizeof(UUID_FBS);
136 }
137
109 if (!cli_connect_uuid(use_uuid, len)) { 138 if (!cli_connect_uuid(use_uuid, len)) {
110 log("Connection failed"); 139 log("Connection failed");
@@ -122,11 +151,8 @@ void ObexFtpDialog::slotBrowse()
122 while ((ent = obexftp_readdir(dir)) != NULL) { 151 while ((ent = obexftp_readdir(dir)) != NULL) {
123 FileListItem* a; //List view item 152 FileListItem* a; //List view item
124#if 0 //Causes sigsegv
125 if (ent->mode != 16877) { 153 if (ent->mode != 16877) {
126 st = obexftp_stat(client, ent->name); 154 fsize = ent->size;
127 fsize = st->size;
128 } 155 }
129 else 156 else
130#endif
131 fsize = 0; 157 fsize = 0;
132 log(QString(ent->name) + QString(" ") + 158 log(QString(ent->name) + QString(" ") +
@@ -223,4 +249,8 @@ void ObexFtpDialog::getFile()
223 local += "/"; 249 local += "/";
224 if (file->gettype() == IS_FILE) { 250 if (file->gettype() == IS_FILE) {
251 if (client == NULL) {
252 errBox("No connection established");
253 return;
254 }
225 file2get += curdir; 255 file2get += curdir;
226 if (curdir != "" && curdir.right(1) != "/") 256 if (curdir != "" && curdir.right(1) != "/")
@@ -230,4 +260,5 @@ void ObexFtpDialog::getFile()
230 odebug << "Copy " << file2get << " to " << local << oendl; 260 odebug << "Copy " << file2get << " to " << local << oendl;
231 progressStatus = 0; 261 progressStatus = 0;
262 fileProgress->setTotalSteps(file->getsize() / 1024);
232 fileProgress->reset(); 263 fileProgress->reset();
233 status(tr("Receiving file ") + file2get); 264 status(tr("Receiving file ") + file2get);
@@ -246,4 +277,52 @@ void ObexFtpDialog::getFile()
246} 277}
247 278
279/*
280 * Put the file
281 */
282void ObexFtpDialog::putFile()
283{
284 int result; //OPeration result
285 int idx; //Index of a symbol in the string
286 struct stat localFStat; //Local file information
287
288 if (client == NULL) {
289 errBox("No connection established");
290 return;
291 }
292 local = destFile->selectedName();
293 if (local == "") {
294 errBox("No file slected");
295 return;
296 }
297 result = stat(local, &localFStat);
298 if (result < 0) {
299 errBox(tr("Wrong file selected ") + local + tr(" ") +
300 tr(strerror(errno)));
301 return;
302 }
303 idx = local.findRev('/');
304 if (idx > 0) {
305 file2get = local.right(local.length() - idx - 1);
306 }
307 else
308 file2get = local;
309
310 odebug << "Copy " << local << " to " << file2get << oendl;
311 progressStatus = 0;
312 fileProgress->setTotalSteps(localFStat.st_size / 1024);
313 fileProgress->reset();
314 status(tr("Sending file ") + local);
315 result = obexftp_put_file(client, local, file2get);
316 if (result < 0) {
317 log(local + QString(" send ERROR"));
318 errBox(local + QString(" send ERROR"));
319 status(local + QString(" send ERROR"));
320 }
321 else {
322 log(local + QString(" sent"));
323 status(local + QString(" sent"));
324 }
325}
326
248/* connect with given uuid. re-connect every time */ 327/* connect with given uuid. re-connect every time */
249int ObexFtpDialog::cli_connect_uuid(const uint8_t *uuid, int uuid_len) 328int ObexFtpDialog::cli_connect_uuid(const uint8_t *uuid, int uuid_len)
@@ -262,5 +341,5 @@ int ObexFtpDialog::cli_connect_uuid(const uint8_t *uuid, int uuid_len)
262 if (!use_path) 341 if (!use_path)
263 client->quirks &= ~OBEXFTP_SPLIT_SETPATH; 342 client->quirks &= ~OBEXFTP_SPLIT_SETPATH;
264 for (retry = 0; retry < 3; retry++) { 343 for (retry = 0; retry < nRetries; retry++) {
265 /* Connect */ 344 /* Connect */
266 switch (transport) { 345 switch (transport) {
@@ -310,8 +389,6 @@ void ObexFtpDialog::log(const char* str)
310void ObexFtpDialog::incProgress() 389void ObexFtpDialog::incProgress()
311{ 390{
312 odebug << "Progress " << progressStatus << oendl; 391 if (progressStatus < fileProgress->totalSteps())
313 if (progressStatus < MAX_PROGRESS) {
314 fileProgress->setProgress(progressStatus++); 392 fileProgress->setProgress(progressStatus++);
315 }
316} 393}
317 394
diff --git a/noncore/net/opietooth/manager/obexftpdialog.h b/noncore/net/opietooth/manager/obexftpdialog.h
index b13efe5..7000f61 100644
--- a/noncore/net/opietooth/manager/obexftpdialog.h
+++ b/noncore/net/opietooth/manager/obexftpdialog.h
@@ -57,8 +57,10 @@ namespace OpieTooth {
57 Opie::Ui::OFileSelector* destFile; //Destination file or directory 57 Opie::Ui::OFileSelector* destFile; //Destination file or directory
58 QVBoxLayout* localLayout; //Window layout 58 QVBoxLayout* localLayout; //Window layout
59 int nRetries; //Number of retries (on connection)
59 private slots: 60 private slots:
60 void slotBrowse(); 61 void slotBrowse();
61 void slotCd(QListViewItem* item); 62 void slotCd(QListViewItem* item);
62 void getFile(); 63 void getFile();
64 void putFile();
63 void updateDir(const QString& newdir); 65 void updateDir(const QString& newdir);
64 }; 66 };
diff --git a/noncore/net/opietooth/manager/obexftpdialogbase.cpp b/noncore/net/opietooth/manager/obexftpdialogbase.cpp
index 0640511..dd54b5f 100644
--- a/noncore/net/opietooth/manager/obexftpdialogbase.cpp
+++ b/noncore/net/opietooth/manager/obexftpdialogbase.cpp
@@ -2,5 +2,5 @@
2** Form implementation generated from reading ui file 'obexftpdialogbase.ui' 2** Form implementation generated from reading ui file 'obexftpdialogbase.ui'
3** 3**
4** Created: Sun Mar 19 16:47:24 2006 4** Created: Tue Mar 21 00:29:33 2006
5** by: The User Interface Compiler (uic) 5** by: The User Interface Compiler (uic)
6** 6**
@@ -12,9 +12,9 @@
12#include <qheader.h> 12#include <qheader.h>
13#include <qlabel.h> 13#include <qlabel.h>
14#include <qlineedit.h>
15#include <qlistview.h> 14#include <qlistview.h>
16#include <qmultilineedit.h> 15#include <qmultilineedit.h>
17#include <qprogressbar.h> 16#include <qprogressbar.h>
18#include <qpushbutton.h> 17#include <qpushbutton.h>
18#include <qspinbox.h>
19#include <qtabwidget.h> 19#include <qtabwidget.h>
20#include <qwidget.h> 20#include <qwidget.h>
@@ -36,5 +36,5 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m
36 if ( !name ) 36 if ( !name )
37 setName( "ObexFtpDialogBase" ); 37 setName( "ObexFtpDialogBase" );
38 resize( 221, 396 ); 38 resize( 267, 312 );
39 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, sizePolicy().hasHeightForWidth() ) ); 39 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, sizePolicy().hasHeightForWidth() ) );
40 setCaption( tr( "Browse device" ) ); 40 setCaption( tr( "Browse device" ) );
@@ -50,33 +50,41 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m
50 filesLayout->setMargin( 0 ); 50 filesLayout->setMargin( 0 );
51 51
52 Layout9 = new QVBoxLayout; 52 Layout13 = new QGridLayout;
53 Layout9->setSpacing( 6 ); 53 Layout13->setSpacing( 6 );
54 Layout9->setMargin( 0 ); 54 Layout13->setMargin( 0 );
55 55
56 fileList = new QListView( files, "fileList" ); 56 fileList = new QListView( files, "fileList" );
57 fileList->addColumn( tr( "Name" ) ); 57 fileList->addColumn( tr( "Name" ) );
58 fileList->addColumn( tr( "Size" ) ); 58 fileList->addColumn( tr( "Size" ) );
59 Layout9->addWidget( fileList ); 59
60 Layout13->addWidget( fileList, 0, 0 );
60 61
61 fileProgress = new QProgressBar( files, "fileProgress" ); 62 fileProgress = new QProgressBar( files, "fileProgress" );
62 Layout9->addWidget( fileProgress );
63 63
64 buttons = new QHBoxLayout; 64 Layout13->addWidget( fileProgress, 1, 0 );
65 buttons->setSpacing( 6 );
66 buttons->setMargin( 0 );
67 65
68 getButton = new QPushButton( files, "getButton" ); 66 Layout11 = new QHBoxLayout;
69 getButton->setText( tr( "Get file" ) ); 67 Layout11->setSpacing( 6 );
70 buttons->addWidget( getButton ); 68 Layout11->setMargin( 0 );
71 69
72 browseOK = new QPushButton( files, "browseOK" ); 70 browseOK = new QPushButton( files, "browseOK" );
73 browseOK->setText( tr( "Browse" ) ); 71 browseOK->setText( tr( "Browse" ) );
74 buttons->addWidget( browseOK ); 72 Layout11->addWidget( browseOK );
75 Layout9->addLayout( buttons ); 73
74 getButton = new QPushButton( files, "getButton" );
75 getButton->setText( tr( "Get file" ) );
76 Layout11->addWidget( getButton );
77
78 putButton = new QPushButton( files, "putButton" );
79 putButton->setText( tr( "Put file" ) );
80 Layout11->addWidget( putButton );
81
82 Layout13->addLayout( Layout11, 2, 0 );
76 83
77 statusBar = new QLabel( files, "statusBar" ); 84 statusBar = new QLabel( files, "statusBar" );
78 statusBar->setText( tr( "" ) ); 85 statusBar->setText( tr( "" ) );
79 Layout9->addWidget( statusBar ); 86
80 filesLayout->addLayout( Layout9 ); 87 Layout13->addWidget( statusBar, 3, 0 );
88 filesLayout->addLayout( Layout13 );
81 obexFtpTab->insertTab( files, tr( "Device" ) ); 89 obexFtpTab->insertTab( files, tr( "Device" ) );
82 90
@@ -86,19 +94,36 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m
86 options = new QWidget( obexFtpTab, "options" ); 94 options = new QWidget( obexFtpTab, "options" );
87 95
88 connRetries = new QLabel( options, "connRetries" ); 96 QWidget* privateLayoutWidget = new QWidget( options, "Layout5" );
89 connRetries->setGeometry( QRect( 10, 45, 100, 16 ) ); 97 privateLayoutWidget->setGeometry( QRect( 45, 5, 162, 63 ) );
90 connRetries->setText( tr( "Retry to connect" ) ); 98 Layout5 = new QVBoxLayout( privateLayoutWidget );
99 Layout5->setSpacing( 6 );
100 Layout5->setMargin( 0 );
91 101
92 nReries = new QLineEdit( options, "nReries" ); 102 Layout3 = new QHBoxLayout;
93 nReries->setGeometry( QRect( 115, 40, 60, 23 ) ); 103 Layout3->setSpacing( 6 );
104 Layout3->setMargin( 0 );
94 105
95 uuidLabel = new QLabel( options, "uuidLabel" ); 106 uuidLabel = new QLabel( privateLayoutWidget, "uuidLabel" );
96 uuidLabel->setGeometry( QRect( 15, 20, 67, 15 ) );
97 uuidLabel->setText( tr( "uuid type" ) ); 107 uuidLabel->setText( tr( "uuid type" ) );
108 Layout3->addWidget( uuidLabel );
98 109
99 uuidType = new QComboBox( FALSE, options, "uuidType" ); 110 uuidType = new QComboBox( FALSE, privateLayoutWidget, "uuidType" );
100 uuidType->insertItem( tr( "FBS" ) ); 111 uuidType->insertItem( tr( "FBS" ) );
101 uuidType->insertItem( tr( "S45" ) ); 112 uuidType->insertItem( tr( "S45" ) );
102 uuidType->setGeometry( QRect( 85, 10, 100, 30 ) ); 113 Layout3->addWidget( uuidType );
114 Layout5->addLayout( Layout3 );
115
116 Layout4 = new QHBoxLayout;
117 Layout4->setSpacing( 6 );
118 Layout4->setMargin( 0 );
119
120 connRetries = new QLabel( privateLayoutWidget, "connRetries" );
121 connRetries->setText( tr( "Retry to connect" ) );
122 Layout4->addWidget( connRetries );
123
124 nReries = new QSpinBox( privateLayoutWidget, "nReries" );
125 nReries->setButtonSymbols( QSpinBox::PlusMinus );
126 Layout4->addWidget( nReries );
127 Layout5->addLayout( Layout4 );
103 obexFtpTab->insertTab( options, tr( "Options" ) ); 128 obexFtpTab->insertTab( options, tr( "Options" ) );
104 129
@@ -115,9 +140,9 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m
115 // tab order 140 // tab order
116 setTabOrder( obexFtpTab, fileList ); 141 setTabOrder( obexFtpTab, fileList );
117 setTabOrder( fileList, getButton ); 142 setTabOrder( fileList, browseOK );
118 setTabOrder( getButton, browseOK ); 143 setTabOrder( browseOK, getButton );
119 setTabOrder( browseOK, uuidType ); 144 setTabOrder( getButton, putButton );
120 setTabOrder( uuidType, nReries ); 145 setTabOrder( putButton, uuidType );
121 setTabOrder( nReries, browseLog ); 146 setTabOrder( uuidType, browseLog );
122} 147}
123 148
diff --git a/noncore/net/opietooth/manager/obexftpdialogbase.h b/noncore/net/opietooth/manager/obexftpdialogbase.h
index 3a4937a..32a313d 100644
--- a/noncore/net/opietooth/manager/obexftpdialogbase.h
+++ b/noncore/net/opietooth/manager/obexftpdialogbase.h
@@ -2,5 +2,5 @@
2** Form interface generated from reading ui file 'obexftpdialogbase.ui' 2** Form interface generated from reading ui file 'obexftpdialogbase.ui'
3** 3**
4** Created: Sun Mar 19 16:46:33 2006 4** Created: Tue Mar 21 00:28:12 2006
5** by: The User Interface Compiler (uic) 5** by: The User Interface Compiler (uic)
6** 6**
@@ -17,5 +17,4 @@ class QGridLayout;
17class QComboBox; 17class QComboBox;
18class QLabel; 18class QLabel;
19class QLineEdit;
20class QListView; 19class QListView;
21class QListViewItem; 20class QListViewItem;
@@ -23,4 +22,5 @@ class QMultiLineEdit;
23class QProgressBar; 22class QProgressBar;
24class QPushButton; 23class QPushButton;
24class QSpinBox;
25class QTabWidget; 25class QTabWidget;
26class QWidget; 26class QWidget;
@@ -38,13 +38,14 @@ public:
38 QListView* fileList; 38 QListView* fileList;
39 QProgressBar* fileProgress; 39 QProgressBar* fileProgress;
40 QPushButton* getButton;
41 QPushButton* browseOK; 40 QPushButton* browseOK;
41 QPushButton* getButton;
42 QPushButton* putButton;
42 QLabel* statusBar; 43 QLabel* statusBar;
43 QWidget* localFs; 44 QWidget* localFs;
44 QWidget* options; 45 QWidget* options;
45 QLabel* connRetries;
46 QLineEdit* nReries;
47 QLabel* uuidLabel; 46 QLabel* uuidLabel;
48 QComboBox* uuidType; 47 QComboBox* uuidType;
48 QLabel* connRetries;
49 QSpinBox* nReries;
49 QWidget* browse; 50 QWidget* browse;
50 QMultiLineEdit* browseLog; 51 QMultiLineEdit* browseLog;
@@ -53,6 +54,9 @@ protected:
53 QVBoxLayout* ObexFtpDialogBaseLayout; 54 QVBoxLayout* ObexFtpDialogBaseLayout;
54 QVBoxLayout* filesLayout; 55 QVBoxLayout* filesLayout;
55 QVBoxLayout* Layout9; 56 QGridLayout* Layout13;
56 QHBoxLayout* buttons; 57 QHBoxLayout* Layout11;
58 QVBoxLayout* Layout5;
59 QHBoxLayout* Layout3;
60 QHBoxLayout* Layout4;
57 QHBoxLayout* browseLayout; 61 QHBoxLayout* browseLayout;
58}; 62};
diff --git a/noncore/net/opietooth/manager/obexftpdialogbase.ui b/noncore/net/opietooth/manager/obexftpdialogbase.ui
index 86e87e4..b372b9d 100644
--- a/noncore/net/opietooth/manager/obexftpdialogbase.ui
+++ b/noncore/net/opietooth/manager/obexftpdialogbase.ui
@@ -12,6 +12,6 @@
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>221</width> 14 <width>267</width>
15 <height>396</height> 15 <height>312</height>
16 </rect> 16 </rect>
17 </property> 17 </property>
@@ -77,7 +77,7 @@
77 <property stdset="1"> 77 <property stdset="1">
78 <name>name</name> 78 <name>name</name>
79 <cstring>Layout9</cstring> 79 <cstring>Layout13</cstring>
80 </property> 80 </property>
81 <vbox> 81 <grid>
82 <property stdset="1"> 82 <property stdset="1">
83 <name>margin</name> 83 <name>margin</name>
@@ -88,5 +88,5 @@
88 <number>6</number> 88 <number>6</number>
89 </property> 89 </property>
90 <widget> 90 <widget row="0" column="0" >
91 <class>QListView</class> 91 <class>QListView</class>
92 <column> 92 <column>
@@ -123,5 +123,5 @@
123 </property> 123 </property>
124 </widget> 124 </widget>
125 <widget> 125 <widget row="1" column="0" >
126 <class>QProgressBar</class> 126 <class>QProgressBar</class>
127 <property stdset="1"> 127 <property stdset="1">
@@ -130,9 +130,9 @@
130 </property> 130 </property>
131 </widget> 131 </widget>
132 <widget> 132 <widget row="2" column="0" >
133 <class>QLayoutWidget</class> 133 <class>QLayoutWidget</class>
134 <property stdset="1"> 134 <property stdset="1">
135 <name>name</name> 135 <name>name</name>
136 <cstring>buttons</cstring> 136 <cstring>Layout11</cstring>
137 </property> 137 </property>
138 <hbox> 138 <hbox>
@@ -149,4 +149,15 @@
149 <property stdset="1"> 149 <property stdset="1">
150 <name>name</name> 150 <name>name</name>
151 <cstring>browseOK</cstring>
152 </property>
153 <property stdset="1">
154 <name>text</name>
155 <string>Browse</string>
156 </property>
157 </widget>
158 <widget>
159 <class>QPushButton</class>
160 <property stdset="1">
161 <name>name</name>
151 <cstring>getButton</cstring> 162 <cstring>getButton</cstring>
152 </property> 163 </property>
@@ -160,14 +171,14 @@
160 <property stdset="1"> 171 <property stdset="1">
161 <name>name</name> 172 <name>name</name>
162 <cstring>browseOK</cstring> 173 <cstring>putButton</cstring>
163 </property> 174 </property>
164 <property stdset="1"> 175 <property stdset="1">
165 <name>text</name> 176 <name>text</name>
166 <string>Browse</string> 177 <string>Put file</string>
167 </property> 178 </property>
168 </widget> 179 </widget>
169 </hbox> 180 </hbox>
170 </widget> 181 </widget>
171 <widget> 182 <widget row="3" column="0" >
172 <class>QLabel</class> 183 <class>QLabel</class>
173 <property stdset="1"> 184 <property stdset="1">
@@ -180,5 +191,5 @@
180 </property> 191 </property>
181 </widget> 192 </widget>
182 </vbox> 193 </grid>
183 </widget> 194 </widget>
184 </vbox> 195 </vbox>
@@ -206,86 +217,114 @@
206 </attribute> 217 </attribute>
207 <widget> 218 <widget>
208 <class>QLabel</class> 219 <class>QLayoutWidget</class>
209 <property stdset="1">
210 <name>name</name>
211 <cstring>connRetries</cstring>
212 </property>
213 <property stdset="1">
214 <name>geometry</name>
215 <rect>
216 <x>10</x>
217 <y>45</y>
218 <width>100</width>
219 <height>16</height>
220 </rect>
221 </property>
222 <property stdset="1">
223 <name>text</name>
224 <string>Retry to connect</string>
225 </property>
226 </widget>
227 <widget>
228 <class>QLineEdit</class>
229 <property stdset="1"> 220 <property stdset="1">
230 <name>name</name> 221 <name>name</name>
231 <cstring>nReries</cstring> 222 <cstring>Layout5</cstring>
232 </property> 223 </property>
233 <property stdset="1"> 224 <property stdset="1">
234 <name>geometry</name> 225 <name>geometry</name>
235 <rect> 226 <rect>
236 <x>115</x> 227 <x>45</x>
237 <y>40</y> 228 <y>5</y>
238 <width>60</width> 229 <width>162</width>
239 <height>23</height> 230 <height>63</height>
240 </rect> 231 </rect>
241 </property> 232 </property>
242 </widget> 233 <vbox>
243 <widget> 234 <property stdset="1">
244 <class>QLabel</class> 235 <name>margin</name>
245 <property stdset="1"> 236 <number>0</number>
246 <name>name</name>
247 <cstring>uuidLabel</cstring>
248 </property>
249 <property stdset="1">
250 <name>geometry</name>
251 <rect>
252 <x>15</x>
253 <y>20</y>
254 <width>67</width>
255 <height>15</height>
256 </rect>
257 </property>
258 <property stdset="1">
259 <name>text</name>
260 <string>uuid type</string>
261 </property>
262 </widget>
263 <widget>
264 <class>QComboBox</class>
265 <item>
266 <property>
267 <name>text</name>
268 <string>FBS</string>
269 </property> 237 </property>
270 </item> 238 <property stdset="1">
271 <item> 239 <name>spacing</name>
272 <property> 240 <number>6</number>
273 <name>text</name>
274 <string>S45</string>
275 </property> 241 </property>
276 </item> 242 <widget>
277 <property stdset="1"> 243 <class>QLayoutWidget</class>
278 <name>name</name> 244 <property stdset="1">
279 <cstring>uuidType</cstring> 245 <name>name</name>
280 </property> 246 <cstring>Layout3</cstring>
281 <property stdset="1"> 247 </property>
282 <name>geometry</name> 248 <hbox>
283 <rect> 249 <property stdset="1">
284 <x>85</x> 250 <name>margin</name>
285 <y>10</y> 251 <number>0</number>
286 <width>100</width> 252 </property>
287 <height>30</height> 253 <property stdset="1">
288 </rect> 254 <name>spacing</name>
289 </property> 255 <number>6</number>
256 </property>
257 <widget>
258 <class>QLabel</class>
259 <property stdset="1">
260 <name>name</name>
261 <cstring>uuidLabel</cstring>
262 </property>
263 <property stdset="1">
264 <name>text</name>
265 <string>uuid type</string>
266 </property>
267 </widget>
268 <widget>
269 <class>QComboBox</class>
270 <item>
271 <property>
272 <name>text</name>
273 <string>FBS</string>
274 </property>
275 </item>
276 <item>
277 <property>
278 <name>text</name>
279 <string>S45</string>
280 </property>
281 </item>
282 <property stdset="1">
283 <name>name</name>
284 <cstring>uuidType</cstring>
285 </property>
286 </widget>
287 </hbox>
288 </widget>
289 <widget>
290 <class>QLayoutWidget</class>
291 <property stdset="1">
292 <name>name</name>
293 <cstring>Layout4</cstring>
294 </property>
295 <hbox>
296 <property stdset="1">
297 <name>margin</name>
298 <number>0</number>
299 </property>
300 <property stdset="1">
301 <name>spacing</name>
302 <number>6</number>
303 </property>
304 <widget>
305 <class>QLabel</class>
306 <property stdset="1">
307 <name>name</name>
308 <cstring>connRetries</cstring>
309 </property>
310 <property stdset="1">
311 <name>text</name>
312 <string>Retry to connect</string>
313 </property>
314 </widget>
315 <widget>
316 <class>QSpinBox</class>
317 <property stdset="1">
318 <name>name</name>
319 <cstring>nReries</cstring>
320 </property>
321 <property stdset="1">
322 <name>buttonSymbols</name>
323 <enum>PlusMinus</enum>
324 </property>
325 </widget>
326 </hbox>
327 </widget>
328 </vbox>
290 </widget> 329 </widget>
291 </widget> 330 </widget>
@@ -324,8 +363,8 @@
324 <tabstop>obexFtpTab</tabstop> 363 <tabstop>obexFtpTab</tabstop>
325 <tabstop>fileList</tabstop> 364 <tabstop>fileList</tabstop>
326 <tabstop>getButton</tabstop>
327 <tabstop>browseOK</tabstop> 365 <tabstop>browseOK</tabstop>
366 <tabstop>getButton</tabstop>
367 <tabstop>putButton</tabstop>
328 <tabstop>uuidType</tabstop> 368 <tabstop>uuidType</tabstop>
329 <tabstop>nReries</tabstop>
330 <tabstop>browseLog</tabstop> 369 <tabstop>browseLog</tabstop>
331</tabstops> 370</tabstops>