2
/***************************************************************************
3
* Copyright (C) 2003 by Fred Schaettgen *
4
* kdebluetooth@schaettgen.de *
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation; either version 2 of the License, or *
9
* (at your option) any later version. *
10
***************************************************************************/
12
#ifndef KBLUETOOTHDEVICEMIMECONVERTER_H
13
#define KBLUETOOTHDEVICEMIMECONVERTER_H
18
namespace KBluetooth {
21
@author Fred Schaettgen
23
class DeviceClassMimeConverter
26
static QString classToMimeType(int deviceClass);
27
static QString mimeTypeToIcon(QString mimeType);
28
static QString classToIconName(int deviceClass);
30
DeviceClassMimeConverter();
31
static DeviceClassMimeConverter *getInstance();
33
std::map<QString, QString> mimeTypeToIconMap;
34
void getIconName(QString mimetype);