summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore 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 1b19c6b..2931cf7 100644
--- a/core/obex/obexsend.cpp
+++ b/core/obex/obexsend.cpp
@@ -232,64 +232,64 @@ int DeviceBox::idFor ( int id ) {
232 break; 232 break;
233 case Error: 233 case Error:
234 ret = irEr; 234 ret = irEr;
235 irEr++; 235 irEr++;
236 break; 236 break;
237 } 237 }
238 return ret; 238 return ret;
239} 239}
240QString DeviceBox::allText() { 240QString DeviceBox::allText() {
241 QString str; 241 QString str;
242 typedef QMap<int, DeviceItem> DeviceMap; 242 typedef QMap<int, DeviceItem> DeviceMap;
243 243
244 for (QMap<int, DeviceItem>::Iterator it = m_dev.begin(); it != m_dev.end(); ++it ) { 244 for (QMap<int, DeviceItem>::Iterator it = m_dev.begin(); it != m_dev.end(); ++it ) {
245 str += it.data().toString() + "<br>"; 245 str += it.data().toString() + "<br>";
246 } 246 }
247 return str; 247 return str;
248} 248}
249 249
250DeviceItem::DeviceItem( const QString& name, 250DeviceItem::DeviceItem( const QString& name,
251 const QString& status, int dev, int id) 251 const QString& status, int dev, int id)
252{ 252{
253 m_name = name; 253 m_name = name;
254 m_status = status; 254 m_status = status;
255 m_dev = dev; 255 m_dev = dev;
256 m_id = id; 256 m_id = id;
257} 257}
258int DeviceItem::id()const { 258int DeviceItem::id()const {
259 return m_id; 259 return m_id;
260} 260}
261QString DeviceItem::name()const { 261QString DeviceItem::name()const {
262 return m_name; 262 return m_name;
263} 263}
264QString DeviceItem::status()const { 264QString DeviceItem::status()const {
265 return m_status; 265 return m_status;
266} 266}
267int DeviceItem::device()const { 267int DeviceItem::device()const {
268 return m_dev; 268 return m_dev;
269} 269}
270QString DeviceItem::pixmap()const{ 270QString DeviceItem::pixmap()const{
271 QString str; 271 QString str;
272 switch(m_dev) { 272 switch(m_dev) {
273 case DeviceBox::IrDa: 273 case DeviceBox::IrDa:
274 str ="obex/irda"; 274 str ="obex/irda";
275 break; 275 break;
276 case DeviceBox::BT: 276 case DeviceBox::BT:
277 str ="obex/bt"; 277 str ="obex/bt";
278 break; 278 break;
279 case DeviceBox::Search: 279 case DeviceBox::Search:
280 str = "obex/search"; 280 str = "mag";
281 break; 281 break;
282 case DeviceBox::Error: 282 case DeviceBox::Error:
283 str = "editdelete"; 283 str = "editdelete";
284 break; 284 break;
285 }; 285 };
286 return str; 286 return str;
287} 287}
288DeviceItem::~DeviceItem() { 288DeviceItem::~DeviceItem() {
289} 289}
290void DeviceItem::setStatus(const QString& status ) { 290void DeviceItem::setStatus(const QString& status ) {
291 m_status = status; 291 m_status = status;
292} 292}
293QString DeviceItem::toString()const { 293QString DeviceItem::toString()const {
294 return "<p><a href=\""+QString::number(m_id) +"\" ><img src=\""+pixmap()+"\" >"+m_name+" "+m_status+" </a></p>" ; 294 return "<p><a href=\""+QString::number(m_id) +"\" ><img src=\""+pixmap()+"\" >"+m_name+" "+m_status+" </a></p>" ;
295} 295}