• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
kopeteproperties.cpp
Go to the documentation of this file.
1 /*
2  kopetetproperties.cpp - Kopete Properties
3 
4  Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
5  Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
6 
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  *************************************************************************
15 */
16 
17 #include "kopeteproperties.h"
18 
19 #include <kdebug.h>
20 
21 #include <qdom.h>
22 #include <qvariant.h>
23 #include <typeinfo>
24 
25 namespace Kopete {
26 namespace Properties {
27 
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 )
31 {
32  kWarning(14010) << "data time mismatch for property data name " << name
33  << ". found: " << found.name() << ", expected: " << expected.name() << endl;
34 }
35 
36 template<>
37 int variantTo<int>(QVariant) { return 0; }
38 //...
39 
40 QVariant variantFromXML(const QDomElement&)
41 {
42  return QVariant();
43 }
44 
45 void variantToXML(QVariant v, QDomElement &)
46 {
47  Q_UNUSED(v);
48 }
49 
50 } // namespace Properties
51 } // namespace Kopete
Kopete::Properties::variantTo< int >
int variantTo< int >(QVariant)
Definition: kopeteproperties.cpp:37
Kopete::Properties::variantFromXML
QVariant variantFromXML(const QDomElement &)
Definition: kopeteproperties.cpp:40
kopeteproperties.h
Kopete::Properties::variantToXML
void variantToXML(QVariant v, QDomElement &)
Definition: kopeteproperties.cpp:45
Kopete::Properties::customPropertyDataIncorrectType
void customPropertyDataIncorrectType(const char *name, const std::type_info &found, const std::type_info &expected)
Definition: kopeteproperties.cpp:30
QDomElement
name
const char * name
Definition: kopeteonlinestatus.cpp:104
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal