tdebluez
devicemimeconverter.h
Go to the documentation of this file.
1/*
2 *
3 * Device Mime Converter for libtdebluez
4 *
5 * Copyright (C) 2003 by Fred Schaettgen
6 * Copyright (C) 2018 Emanoil Kotsev <deloptes@gmail.com>
7 *
8 *
9 * This file is part of libtdebluez.
10 *
11 * libtdebluez is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * libtdebluez is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with kbluetooth; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 *
25 */
26
27#ifndef DEVICEMIMECONVERTER_H
28#define DEVICEMIMECONVERTER_H
29
30#include <map>
31
32namespace TDEBluetooth
33{
37class TDE_EXPORT DeviceMimeConverter
38{
39public:
40 static TQString classToMimeType(int deviceClass);
41 static TQString mimeTypeToIcon(TQString mimeType);
42 static TQString classToIconName(int deviceClass);
43protected:
45 static DeviceMimeConverter *getInstance();
46private:
47 std::map<TQString, TQString> mimeTypeToIconMap;
48 void getIconName(TQString mimetype);
49};
50
51} // TDEBluetooth
52
53#endif
std::map< TQString, TQString > mimeTypeToIconMap