• 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
kopeteglobal.h
Go to the documentation of this file.
1 /*
2  kopeteglobal.h - Kopete Globals
3 
4  Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
5 
6  Kopete (c) 2004 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 
18 #ifndef KOPETEGLOBAL_H
19 #define KOPETEGLOBAL_H
20 
21 #include "kopeteproperty.h"
22 
23 #include "kopete_export.h"
24 
28 namespace Kopete
29 {
30 
34 namespace Global
35 {
36  class PropertiesPrivate;
37 
45  class KOPETE_EXPORT Properties
46  {
47  friend class Kopete::PropertyTmpl;
48  public:
55  static Properties *self();
56 
61  const PropertyTmpl &tmpl(const QString &key) const;
62 
70  const PropertyTmpl &fullName() const;
71 
75  const PropertyTmpl &idleTime() const;
80  const PropertyTmpl &onlineSince() const;
84  const PropertyTmpl &lastSeen() const;
88  const PropertyTmpl &statusTitle() const;
92  const PropertyTmpl &statusMessage() const;
96  const PropertyTmpl &firstName() const;
100  const PropertyTmpl &lastName() const;
104  const PropertyTmpl &emailAddress() const;
108  const PropertyTmpl &privatePhone() const;
112  const PropertyTmpl &privateMobilePhone() const;
116  const PropertyTmpl &workPhone() const;
120  const PropertyTmpl &workMobilePhone() const;
125  const PropertyTmpl &nickName() const;
130  const PropertyTmpl &customName() const;
134  const PropertyTmpl &isAlwaysVisible() const;
141  const PropertyTmpl &photo() const;
142 
146  const PropertyTmpl::Map &templateMap() const;
147 
152  bool isRegistered(const QString &key);
153 
154  private:
155  Properties();
156  ~Properties();
157 
158  bool registerTemplate(const QString &key,
159  const PropertyTmpl &tmpl);
160  void unregisterTemplate(const QString &key);
161 
162  const PropertyTmpl &createProp(const QString &key,
163  const QString &label, const QString &icon=QString(),
164  bool persistent = false) const;
165 
166  private:
167  static Properties *mSelf;
168  PropertiesPrivate *d;
169  }; // end class Properties
170 
171 } // Global
172 
173 } // Kopete
174 
175 #endif
176 // vim: set noet ts=4 sts=4 sw=4:
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
kopeteproperty.h
Kopete::PropertyTmpl::persistent
bool persistent() const
Returns true if properties based on this template should be saved across Kopete sessions, false otherwise.
Definition: kopeteproperty.cpp:157
QMap< QString, PropertyTmpl >
Kopete::Global::Properties
Global facility to query/store templates that are needed by KopeteProperty.
Definition: kopeteglobal.h:45
Kopete::PropertyTmpl
Definition: kopeteproperty.h:41
kopete_export.h
QString
Kopete::PropertyTmpl::icon
const QString & icon() const
Getter for icon to show aside or instead of label()
Definition: kopeteproperty.cpp:147
Kopete::PropertyTmpl::label
const QString & label() const
Getter for i18ned label.
Definition: kopeteproperty.cpp:142
Kopete::PropertyTmpl::key
const QString & key() const
Getter for the unique key.
Definition: kopeteproperty.cpp:137
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