• 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
  • ui
avatarselectorwidget.h
Go to the documentation of this file.
1 /*
2  avatarselectorwidget.h - Widget to manage and select user avatar
3 
4  Copyright (c) 2007 by MichaĆ«l Larouche <larouche@kde.org>
5  2007 Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
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 #ifndef KOPETE_AVATARSELECTORWIDGET_H
19 #define KOPETE_AVATARSELECTORWIDGET_H
20 
21 #include <QtGui/QWidget>
22 
23 // Kopete includes
24 #include <kopete_export.h>
25 #include <kopeteavatarmanager.h>
26 
27 class QListWidgetItem;
28 class KJob;
29 
30 namespace Kopete
31 {
32 
33 namespace UI
34 {
35 
44 class KOPETE_EXPORT AvatarSelectorWidget : public QWidget
45 {
46  Q_OBJECT
47 public:
52  AvatarSelectorWidget(QWidget *parent = 0);
56  virtual ~AvatarSelectorWidget();
57 
66  Kopete::AvatarManager::AvatarEntry selectedEntry() const;
67 
73  void setCurrentAvatar(const QString &path);
74 
75 private Q_SLOTS:
80  void buttonAddAvatarClicked();
81 
86  void buttonRemoveAvatarClicked();
87 
92  void buttonFromWebcamClicked();
93 
98  void queryJobFinished(KJob *job);
99 
105  void avatarAdded(Kopete::AvatarManager::AvatarEntry newEntry);
106 
112  void avatarRemoved(Kopete::AvatarManager::AvatarEntry entryRemoved);
113 
119  void listSelectionChanged(QListWidgetItem *item);
120 
127  void cropAndSaveAvatar(QPixmap &pixmap, const QString &imageName);
128 
129 private:
130  Q_DISABLE_COPY(AvatarSelectorWidget)
131 
132  class Private;
133  Private * const d;
134 };
135 
136 }
137 
138 }
139 
140 #endif
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
QWidget
QListWidgetItem
kopeteavatarmanager.h
kopete_export.h
QString
QPixmap
Kopete::AvatarManager::AvatarEntry
A single entry in AvatarManager.
Definition: kopeteavatarmanager.h:127
Kopete::UI::AvatarSelectorWidget
Widget to select and manager user avatar.
Definition: avatarselectorwidget.h:44
KJob
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