• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/kopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • kopete
  • identity
identitystatuswidget.h
Go to the documentation of this file.
1 /*
2  identitystatuswidget.h - Kopete Identity Status configuration widget
3 
4  Copyright (c) 2007-2009 by Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
5  Copyright (c) 2007 by Will Stephenson <wstephenson@kde.org>
6 
7  Kopete (c) 2002-2009 by the Kopete developers <kopete-devel@kde.org>
8 
9  *************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  *************************************************************************
17 */
18 
19 #ifndef IDENTITYSTATUSWIDGET_H
20 #define IDENTITYSTATUSWIDGET_H
21 
22 #include <QWidget>
23 #include <QListWidgetItem>
24 #include <kopete_export.h>
25 
26 namespace Kopete
27 {
28 class Account;
29 class Contact;
30 class Identity;
31 class PropertyContainer;
32 }
33 
39 class KOPETE_IDENTITY_EXPORT IdentityStatusWidget : public QWidget
40 {
41  Q_OBJECT
42 
43 public:
47  explicit IdentityStatusWidget( Kopete::Identity *ident, QWidget *parent = 0 );
48  ~IdentityStatusWidget();
49 
53  Kopete::Identity *identity() const;
54  void setIdentity(Kopete::Identity *identity);
55 
56  virtual void setVisible(bool visible);
57 
58 protected:
59  bool eventFilter( QObject *watched, QEvent *event );
60 
61 private:
65  void load();
66 
67 private slots:
68  void slotAnimate(qreal amount);
69 
70  void showAccountContextMenu( const QPoint & );
71  void slotAccountClicked( QListWidgetItem * item );
72  void slotAccountDoubleClicked( QListWidgetItem * item );
73  void slotPhotoClicked();
74  void slotAccountRegistered( Kopete::Account *account );
75  void slotAccountUnregistered( const Kopete::Account *account );
76  void slotAccountStatusIconChanged( Kopete::Contact *contact );
80  void slotIdentityUnregistered( const Kopete::Identity* identity );
81 
85  void slotIdentityPropertyChanged(Kopete::PropertyContainer *container );
86  void slotIdentityChanged(Kopete::Identity *identity);
87 
88 private:
89  void addAccountItem( Kopete::Account *account );
90  void resizeAccountListWidget();
91  class Private;
92  Private * const d;
93 };
94 
95 #endif
96 
97 // vim: set noet ts=4 sts=4 sw=4:
98 
QEvent
QWidget
IdentityStatusWidget
Definition: identitystatuswidget.h:39
QListWidgetItem
QWidget::setVisible
virtual void setVisible(bool visible)
QPoint
QObject
QObject::eventFilter
virtual bool eventFilter(QObject *watched, QEvent *event)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • 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