• 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
kopeteidentitymanager.h
Go to the documentation of this file.
1 /*
2  kopeteidentitymanager.h - Kopete Identity Manager
3 
4  Copyright (c) 2007 by Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
5 
6  Kopete (c) 2002-2007 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 __kopeteidentitymanager_h__
19 #define __kopeteidentitymanager_h__
20 
21 #include <QtCore/QObject>
22 
23 #include "kopete_export.h"
24 #include "kopeteonlinestatus.h"
25 #include "kopeteidentity.h"
26 #include "kopetestatusmessage.h"
27 
28 namespace Kopete
29 {
30 
39 class KOPETE_EXPORT IdentityManager : public QObject
40 {
41  Q_OBJECT
42 
43 public:
53  static IdentityManager* self();
54 
55  ~IdentityManager();
56 
61  const Identity::List & identities() const;
62 
68  Identity* findIdentity( const QString &identityId );
69 
70 
81  Identity* defaultIdentity();
82 
89  void setDefaultIdentity(Identity *ident);
90 
96  void removeIdentity( Identity *identity );
97 
106  Identity *registerIdentity( Identity *identity );
107 
108 public slots:
109 
117  void setOnlineStatus( /*Kopete::OnlineStatusManager::Categories*/ uint category,
118  const Kopete::StatusMessage &statusMessage = Kopete::StatusMessage(), uint flags=0);
119 
124  void save();
125 
130  void load();
131 
132 signals:
136  void identityRegistered( Kopete::Identity *identity );
137 
143  void identityUnregistered( const Kopete::Identity *identity );
144 
148  void defaultIdentityChanged( Kopete::Identity *identity );
149 
150  void identityOnlineStatusChanged( Kopete::Identity *identity );
151 
152 private:
156  IdentityManager();
157 
158 private slots:
159  void slotIdentityOnlineStatusChanged( Kopete::Identity *i );
160 
165  void unregisterIdentity( const Kopete::Identity *identity );
166 
167 private:
168  static IdentityManager *s_self;
169  class Private;
170  Private * const d;
171 };
172 
173 } //END namespace Kopete
174 
175 
176 #endif
177 
178 
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::StatusMessage
This class encapsulate a status message.
Definition: kopetestatusmessage.h:48
kopeteonlinestatus.h
QObject
kopetestatusmessage.h
Kopete::IdentityManager
IdentityManager manages all defined identities in Kopete.
Definition: kopeteidentitymanager.h:39
kopete_export.h
QString
QList< Identity * >
Kopete::Identity
Definition: kopeteidentity.h:41
kopeteidentity.h
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