• 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
kopetepicture.h
Go to the documentation of this file.
1 /*
2  kopetepicture.h - Kopete Picture
3 
4  Copyright (c) 2005 by MichaĆ«l Larouche <larouche@kde.org>
5 
6  Kopete (c) 2002-2005 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 #ifndef KOPETEPICTURE_H
18 #define KOPETEPICTURE_H
19 
20 #include <kdemacros.h>
21 #include <ksharedptr.h>
22 #include "kopete_export.h"
23 
24 #include <QtGui/QImage>
25 
26 namespace KABC
27 {
28  class Picture;
29 }
30 
31 namespace Kopete
32 {
61 class KOPETE_EXPORT Picture
62 {
63 public:
67  Picture();
71  explicit Picture(const QString &path);
75  explicit Picture(const QImage &image);
79  explicit Picture(const KABC::Picture &picture);
83  Picture(const Picture &other);
87  ~Picture();
92  Picture &operator=(const Picture &other);
93 
100  QImage image();
105  QString base64();
109  QString path();
110 
114  bool isNull();
118  void clear();
119 
124  void setPicture(const QImage &image);
129  void setPicture(const QString &path);
134  void setPicture(const KABC::Picture &picture);
135 
136 private:
141  void detach();
142 
143  class Private;
144  KSharedPtr<Private> d;
145 };
146 
147 }//END namespace Kopete
148 
149 #endif
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::Picture
Represent a picture in Kopete context.
Definition: kopetepicture.h:61
kopete_export.h
QString
QImage
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