• 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
kopeteidentity.h
Go to the documentation of this file.
1 /*
2  kopeteidentity.h - Kopete Identity
3 
4  Copyright (c) 2007 by Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
5  (c) 2007 Will Stephenson <wstephenson@kde.org>
6 
7  Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
8 
9  *************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Lesser General Public *
13  * License as published by the Free Software Foundation; either *
14  * version 2 of the License, or (at your option) any later version. *
15  * *
16  *************************************************************************
17 */
18 
19 #ifndef KOPETEIDENTITY_H
20 #define KOPETEIDENTITY_H
21 
22 #include <kdemacros.h>
23 #include "kopeteglobal.h"
24 #include "kopetepropertycontainer.h"
25 #include "kopeteonlinestatus.h"
26 #include "kopete_export.h"
27 
28 class KConfigGroup;
29 
30 namespace Kopete
31 {
32 
33 class Account;
34 class StatusMessage;
35 
41 class KOPETE_EXPORT Identity : public PropertyContainer
42 {
43  Q_OBJECT
44 public:
45  typedef QList<Identity*> List;
52  Identity(const QString &label);
53 
59  Identity(const QString &id, const QString &label);
60 
61  ~Identity();
62 
69  Identity * clone() const;
74  QString id() const;
75 
80  QString label() const;
81 
86  void setLabel( const QString & label );
87 
91  bool excludeConnect() const;
92 
97  OnlineStatus::StatusType onlineStatus() const;
98 
102  Kopete::StatusMessage statusMessage() const;
103 
108  QString toolTip() const;
109 
113  QString customIcon() const;
114 
118  QList<Account*> accounts() const;
119 
125  void addAccount( Kopete::Account *account );
126 
131  KConfigGroup *configGroup() const;
132 
136  void load();
137 
141  void save();
142 
143 public slots:
151  void setOnlineStatus( uint category, const Kopete::StatusMessage &statusMessage );
152 
159  void setStatusMessage( const Kopete::StatusMessage &statusMessage );
160 
166  void removeAccount( const Kopete::Account *account );
167 
168  void updateOnlineStatus();
169 
170 protected slots:
171  void slotSaveProperty( Kopete::PropertyContainer *container, const QString &key,
172  const QVariant &oldValue, const QVariant &newValue );
173 
174 signals:
175  void onlineStatusChanged( Kopete::Identity* );
176  void toolTipChanged( Kopete::Identity* );
177  void identityDestroyed( const Kopete::Identity *identity );
178  void identityChanged(Kopete::Identity *identity);
179 
180 private:
181  class Private;
182  Private * const d;
183 
184 };
185 
186 } //END namespace Kopete
187 
188 #endif
189 
Kopete::Identity::List
QList< Identity * > List
Definition: kopeteidentity.h:45
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::StatusMessage
This class encapsulate a status message.
Definition: kopetestatusmessage.h:48
kopeteonlinestatus.h
kopetepropertycontainer.h
kopete_export.h
QString
QList< Identity * >
Kopete::PropertyContainer
Definition: kopetepropertycontainer.h:39
Kopete::OnlineStatus::StatusType
StatusType
The available global states.
Definition: kopeteonlinestatus.h:78
Kopete::Account
The Kopete::Account class handles one account.
Definition: kopeteaccount.h:72
Kopete::Identity
Definition: kopeteidentity.h:41
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