• 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
kopetestatusmessage.h
Go to the documentation of this file.
1 /*
2  kopetestatusmessage.h - Describle a status message and it's metadata.
3 
4  Copyright (c) 2006 by MichaĆ«l Larouche <larouche@kde.org>
5 
6  Kopete (c) 2002-2006 by the Kopete developers <kopete-devel@kde.org>
7 
8  *************************************************************************
9  * *
10  * This library is free software; you can redistribute it and/or *
11  * modify it under the terms of the GNU Lesser General Public *
12  * License as published by the Free Software Foundation; either *
13  * version 2 of the License, or (at your option) any later version. *
14  * *
15  *************************************************************************
16 */
17 #ifndef KOPETESTATUSMESSAGE_H
18 #define KOPETESTATUSMESSAGE_H
19 
20 #include <QtCore/QVariant>
21 
22 #include <ksharedptr.h>
23 #include "kopete_export.h"
24 
25 namespace Kopete
26 {
27 
48 class KOPETE_EXPORT StatusMessage
49 {
50 public:
54  StatusMessage();
61  StatusMessage(const QString &statusMessage); /* implicit */
67  StatusMessage(const QString &statusTitle, const QString &statusMessage);
72  StatusMessage(const StatusMessage &copy);
76  ~StatusMessage();
81  StatusMessage &operator=(const StatusMessage &other);
82 
87  bool isEmpty() const;
88 
94  void addMetaData(const QString &key, const QVariant &value);
100  void addMetaData(const QHash<QString,QVariant> &otherHash);
101 
107  bool hasMetaData(const QString &key) const;
113  QVariant metaData(const QString &key) const;
114 
119  void setMessage(const QString &message);
124  QString message() const;
125 
130  void setTitle(const QString &title);
131 
136  QString title() const;
137 
138 private:
139  class Private;
140  KSharedPtr<Private> d;
141 };
142 
143 }
144 
145 #endif
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::StatusMessage
This class encapsulate a status message.
Definition: kopetestatusmessage.h:48
QHash< QString, QVariant >
kopete_export.h
QString
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