make webinterface translatable. there are around 20 short strings, all with context...
[kdenetwork.git] / kopete / libkopete / kopeteproperties.cpp
blob9ab0be7dca873bf017e8ef64c40133803e6d8dc1
1 /*
2 kopetetproperties.cpp - Kopete Properties
4 Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
5 Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
7 *************************************************************************
8 * *
9 * This library is free software; you can redistribute it and/or *
10 * modify it under the terms of the GNU Lesser General Public *
11 * License as published by the Free Software Foundation; either *
12 * version 2 of the License, or (at your option) any later version. *
13 * *
14 *************************************************************************
17 #include "kopeteproperties.h"
19 #include <kdebug.h>
21 #include <qdom.h>
22 #include <qvariant.h>
23 #include <typeinfo>
25 namespace Kopete {
26 namespace Properties {
28 // Keep as much type-independent code out of the templated stuff as we can
29 // FIXME: shouldn't be inline
30 void customPropertyDataIncorrectType( const char *name, const std::type_info &found, const std::type_info &expected )
32 kWarning(14010) << "data time mismatch for property data name " << name
33 << ". found: " << found.name() << ", expected: " << expected.name() << endl;
36 template<>
37 int variantTo<int>(QVariant) { return 0; }
38 //...
40 QVariant variantFromXML(const QDomElement&)
42 return QVariant();
45 void variantToXML(QVariant v, QDomElement &)
47 Q_UNUSED(v);
50 } // namespace Properties
51 } // namespace Kopete