author | harlekin <harlekin> | 2003-03-26 18:23:22 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-26 18:23:22 (UTC) |
commit | 88a93db37e001dc02f9edddf81919266fde0173c (patch) (unidiff) | |
tree | 337a5b57f3aeb600258f992b261e24bae145519b | |
parent | 86f5b1b916949da47d23549ffcff68e039d38ebb (diff) | |
download | opie-88a93db37e001dc02f9edddf81919266fde0173c.zip opie-88a93db37e001dc02f9edddf81919266fde0173c.tar.gz opie-88a93db37e001dc02f9edddf81919266fde0173c.tar.bz2 |
nicer icon for search
-rw-r--r-- | core/obex/obexsend.cpp | 2 |
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 | |||
@@ -216,80 +216,80 @@ int DeviceBox::idFor ( int id ) { | |||
216 | static int irSr = 501; | 216 | static int irSr = 501; |
217 | static int irEr = 0; | 217 | static int irEr = 0; |
218 | 218 | ||
219 | int ret = -1; | 219 | int ret = -1; |
220 | switch(id ) { | 220 | switch(id ) { |
221 | case IrDa: | 221 | case IrDa: |
222 | ret = irId; | 222 | ret = irId; |
223 | irId++; | 223 | irId++; |
224 | break; | 224 | break; |
225 | case BT: | 225 | case BT: |
226 | ret = irBT; | 226 | ret = irBT; |
227 | irBT++; | 227 | irBT++; |
228 | break; | 228 | break; |
229 | case Search: | 229 | case Search: |
230 | ret = irSr; | 230 | ret = irSr; |
231 | irSr++; | 231 | irSr++; |
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 | } |
240 | QString DeviceBox::allText() { | 240 | QString 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 | ||
250 | DeviceItem::DeviceItem( const QString& name, | 250 | DeviceItem::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 | } |
258 | int DeviceItem::id()const { | 258 | int DeviceItem::id()const { |
259 | return m_id; | 259 | return m_id; |
260 | } | 260 | } |
261 | QString DeviceItem::name()const { | 261 | QString DeviceItem::name()const { |
262 | return m_name; | 262 | return m_name; |
263 | } | 263 | } |
264 | QString DeviceItem::status()const { | 264 | QString DeviceItem::status()const { |
265 | return m_status; | 265 | return m_status; |
266 | } | 266 | } |
267 | int DeviceItem::device()const { | 267 | int DeviceItem::device()const { |
268 | return m_dev; | 268 | return m_dev; |
269 | } | 269 | } |
270 | QString DeviceItem::pixmap()const{ | 270 | QString 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 | } |
288 | DeviceItem::~DeviceItem() { | 288 | DeviceItem::~DeviceItem() { |
289 | } | 289 | } |
290 | void DeviceItem::setStatus(const QString& status ) { | 290 | void DeviceItem::setStatus(const QString& status ) { |
291 | m_status = status; | 291 | m_status = status; |
292 | } | 292 | } |
293 | QString DeviceItem::toString()const { | 293 | QString 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 | } |