~ubuntu-branches/ubuntu/intrepid/kdebluetooth/intrepid-proposed

« back to all changes in this revision

Viewing changes to kdebluetooth/libkbluetooth/devicemimeconverter.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2008-08-07 09:49:47 UTC
  • mto: This revision was merged to the branch mainline in revision 56.
  • Revision ID: james.westby@ubuntu.com-20080807094947-pj6q3uxwuv7l844q
Tags: upstream-0.1
ImportĀ upstreamĀ versionĀ 0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//-*-c++-*-
2
 
/***************************************************************************
3
 
 *   Copyright (C) 2003 by Fred Schaettgen                                 *
4
 
 *   kdebluetooth@schaettgen.de                                            *
5
 
 *                                                                         *
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
 
 ***************************************************************************/
11
 
 
12
 
#ifndef KBLUETOOTHDEVICEMIMECONVERTER_H
13
 
#define KBLUETOOTHDEVICEMIMECONVERTER_H
14
 
 
15
 
#include <qstring.h>
16
 
#include <map>
17
 
 
18
 
namespace KBluetooth {
19
 
 
20
 
/**
21
 
@author Fred Schaettgen
22
 
*/
23
 
class DeviceClassMimeConverter
24
 
{
25
 
public:
26
 
    static QString classToMimeType(int deviceClass);
27
 
    static QString mimeTypeToIcon(QString mimeType);
28
 
    static QString classToIconName(int deviceClass);
29
 
protected:
30
 
    DeviceClassMimeConverter();
31
 
    static DeviceClassMimeConverter *getInstance();
32
 
private:
33
 
    std::map<QString, QString> mimeTypeToIconMap;
34
 
    void getIconName(QString mimetype);
35
 
};
36
 
 
37
 
}
38
 
 
39
 
#endif