00001 /* 00002 This file is part of the Opie Project 00003 =. (C) 2003-2004 Michael 'Mickey' Lauer <mickey@Vanille.de> 00004 .=l. 00005 .>+-= 00006 _;:, .> :=|. This program is free software; you can 00007 .> <`_, > . <= redistribute it and/or modify it under 00008 :`=1 )Y*s>-.-- : the terms of the GNU Library General Public 00009 .="- .-=="i, .._ License as published by the Free Software 00010 - . .-<_> .<> Foundation; version 2 of the License. 00011 ._= =} : 00012 .%`+i> _;_. 00013 .i_,=:_. -<s. This program is distributed in the hope that 00014 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00015 : .. .:, . . . without even the implied warranty of 00016 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00017 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00018 ..}^=.= = ; Library General Public License for more 00019 ++= -. .` .: details. 00020 : = ...= . :.=- 00021 -. .:....=;==+<; You should have received a copy of the GNU 00022 -_. . . )=. = Library General Public License along with 00023 -- :-=` this library; see the file COPYING.LIB. 00024 If not, write to the Free Software Foundation, 00025 Inc., 59 Temple Place - Suite 330, 00026 Boston, MA 02111-1307, USA. 00027 */ 00028 00029 #ifndef OMANUFACTURERDB_H 00030 #define OMANUFACTURERDB_H 00031 00032 #include <qmap.h> 00033 00034 namespace Opie { 00035 namespace Net { 00036 00043 class OManufacturerDB 00044 { 00045 public: 00049 static OManufacturerDB* instance(); 00053 const QString& lookup( const QString& macaddr ) const; 00057 const QString& lookupExt( const QString& macaddr ) const; 00058 00059 protected: 00060 OManufacturerDB(); 00061 virtual ~OManufacturerDB(); 00062 00063 private: 00064 QMap<QString, QString> manufacturers; 00065 QMap<QString, QString> manufacturersExt; 00066 static OManufacturerDB* _instance; 00067 class Private; 00068 Private *d; 00069 }; 00070 00071 } 00072 } 00073 00074 #endif 00075
1.4.2