• 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
kopetepropertycontainer.h
Go to the documentation of this file.
1 /*
2  kopetepropertycontainer.h - Kopete Property Container
3 
4  Copyright (c) 2007 by Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
5  Copyright (c) 2002-2004 by Duncan Mac-Vicar Prett <duncan@kde.org>
6  Copyright (c) 2002-2003 by Martijn Klingens <klingens@kde.org>
7  Copyright (c) 2002-2004 by Olivier Goffart <ogoffart@kde.org>
8 
9  Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
10 
11  *************************************************************************
12  * *
13  * This library is free software; you can redistribute it and/or *
14  * modify it under the terms of the GNU Lesser General Public *
15  * License as published by the Free Software Foundation; either *
16  * version 2 of the License, or (at your option) any later version. *
17  * *
18  *************************************************************************
19 */
20 
21 #ifndef KOPETEPROPERTYCONTAINER_H
22 #define KOPETEPROPERTYCONTAINER_H
23 
24 #include <QtCore/QObject>
25 
26 #include <kdemacros.h>
27 #include "kopeteglobal.h"
28 #include "kopete_export.h"
29 
30 namespace Kopete
31 {
32 
39 class KOPETE_EXPORT PropertyContainer : public QObject
40 {
41  Q_OBJECT
42 
43 public:
49  PropertyContainer( QObject *parent = 0 );
50 
51  virtual ~PropertyContainer();
52 
61  void serializeProperties(QMap<QString, QString> &serializedData) const;
62 
66  void deserializeProperties(const QMap<QString, QString> &serializedData);
67 
71  QStringList properties() const;
72 
78  bool hasProperty(const QString &key) const;
79 
87  const Kopete::Property &property(const QString &key) const;
88  const Kopete::Property &property(const Kopete::PropertyTmpl &tmpl) const;
89 
104  void setProperty(const Kopete::PropertyTmpl &tmpl, const QVariant &value);
105 
111  void removeProperty(const Kopete::PropertyTmpl &tmpl);
112 
113 signals:
114  void propertyChanged( Kopete::PropertyContainer *container, const QString &key,
115  const QVariant &oldValue, const QVariant &newValue );
116 
117 private:
118  class Private;
119  Private * const d;
120 
121 };
122 
123 
124 } //END namespace Kopete
125 
126 #endif
127 
128 
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
QMap
Kopete::PropertyTmpl
Definition: kopeteproperty.h:41
QObject
kopete_export.h
QString
QStringList
Kopete::Property
Definition: kopeteproperty.h:150
Kopete::PropertyContainer
Definition: kopetepropertycontainer.h:39
kopeteglobal.h
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