ksharedpixmap.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef __KSharedPixmap_h_Included__
00015 #define __KSharedPixmap_h_Included__
00016
00017 #include <qstring.h>
00018 #include <qpixmap.h>
00019 #include <qwidget.h>
00020
00021 #ifndef Q_WS_QWS // FIXME: Implement for Qt Embedded
00022 #include <kpixmap.h>
00023
00024 class KSharedPixmapPrivate;
00025
00051 class KSharedPixmap:
00052 public QWidget,
00053 public KPixmap
00054 {
00055 Q_OBJECT
00056
00057 public:
00058
00062 KSharedPixmap();
00063
00067 ~KSharedPixmap();
00068
00082 bool loadFromShared(const QString & name, const QRect & rect=QRect());
00083
00090 bool isAvailable(const QString & name) const;
00091
00092 signals:
00098 void done(bool success);
00099
00100 protected:
00101 bool x11Event(XEvent *);
00102
00103 private:
00104 bool copy(const QString & id, const QRect & rect);
00105 void init();
00106
00107 KSharedPixmapPrivate *d;
00108 };
00109 #else
00110
00111 #define KSharedPixmap KPixmap
00112 #endif
00113
00114 #endif
This file is part of the documentation for kdelibs Version 3.1.4.