summaryrefslogtreecommitdiff
path: root/core/obex/obexsend.cpp
Unidiff
Diffstat (limited to 'core/obex/obexsend.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/obex/obexsend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/obex/obexsend.cpp b/core/obex/obexsend.cpp
index 8432d16..9a30a0a 100644
--- a/core/obex/obexsend.cpp
+++ b/core/obex/obexsend.cpp
@@ -127,49 +127,49 @@ void SendWidget::dispatchIrda( const QCString& str, const QByteArray& ar ) {
127 stream >> list; 127 stream >> list;
128 slotIrDaDevices( list ); 128 slotIrDaDevices( list );
129 } 129 }
130} 130}
131void SendWidget::slotIrError( int ) { 131void SendWidget::slotIrError( int ) {
132 irdaStatus->setText(tr("error :(")); 132 irdaStatus->setText(tr("error :("));
133} 133}
134void SendWidget::slotIrSent( bool b) { 134void SendWidget::slotIrSent( bool b) {
135 QString text = b ? tr("Sent") : tr("Failure"); 135 QString text = b ? tr("Sent") : tr("Failure");
136 setReceiverStatus( m_irDaIt.key(), text ); 136 setReceiverStatus( m_irDaIt.key(), text );
137 ++m_irDaIt; 137 ++m_irDaIt;
138 slotStartIrda(); 138 slotStartIrda();
139} 139}
140void SendWidget::slotIrTry(unsigned int trI) { 140void SendWidget::slotIrTry(unsigned int trI) {
141 setReceiverStatus(m_irDaIt.key(), tr("Try %1").arg( QString::number( trI ) )); 141 setReceiverStatus(m_irDaIt.key(), tr("Try %1").arg( QString::number( trI ) ));
142} 142}
143void SendWidget::slotStartIrda() { 143void SendWidget::slotStartIrda() {
144 if ( !m_irDa.count() ) 144 if ( !m_irDa.count() )
145 return; 145 return;
146 if ( m_irDaIt == m_irDa.end() || !receiverSelected(m_irDaIt.key())) { 146 if ( m_irDaIt == m_irDa.end() || !receiverSelected(m_irDaIt.key())) {
147 irdaStatus->setText(tr("complete.")); 147 irdaStatus->setText(tr("complete."));
148 return; 148 return;
149 } 149 }
150 setReceiverStatus( m_irDaIt.key(), tr("Start sending") ); 150 setReceiverStatus( m_irDaIt.key(), tr("Start sending") );
151 m_obex->send( m_file ); 151 m_obex->send( m_file, tr("noaddress") );
152} 152}
153 153
154void SendWidget::dispatchBt( const QCString& str, const QByteArray& ar ) { 154void SendWidget::dispatchBt( const QCString& str, const QByteArray& ar ) {
155 if ( str == "devices(QStringMap)" ) { 155 if ( str == "devices(QStringMap)" ) {
156 QDataStream stream( ar, IO_ReadOnly ); 156 QDataStream stream( ar, IO_ReadOnly );
157 QMap<QString, QString> btmap; 157 QMap<QString, QString> btmap;
158 stream >> btmap; 158 stream >> btmap;
159 slotBTDevices( btmap ); 159 slotBTDevices( btmap );
160 } 160 }
161} 161}
162void SendWidget::slotBtError( int ) { 162void SendWidget::slotBtError( int ) {
163 btStatus->setText(tr("error :(")); 163 btStatus->setText(tr("error :("));
164} 164}
165void SendWidget::slotBtSent( bool b) { 165void SendWidget::slotBtSent( bool b) {
166 QString text = b ? tr("Sent") : tr("Failure"); 166 QString text = b ? tr("Sent") : tr("Failure");
167 setReceiverStatus( m_btIt.key(), text ); 167 setReceiverStatus( m_btIt.key(), text );
168 ++m_btIt; 168 ++m_btIt;
169 slotStartBt(); 169 slotStartBt();
170} 170}
171void SendWidget::slotBtTry(unsigned int trI) { 171void SendWidget::slotBtTry(unsigned int trI) {
172 setReceiverStatus( m_btIt.key(), tr("Try %1").arg( QString::number( trI ) ) ); 172 setReceiverStatus( m_btIt.key(), tr("Try %1").arg( QString::number( trI ) ) );
173} 173}
174void SendWidget::slotStartBt() { 174void SendWidget::slotStartBt() {
175 // skip past unselected receivers 175 // skip past unselected receivers