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
00020 #ifndef Q_WS_QWS // FIXME: Implement for Qt Embedded
00021 #include <kpixmap.h>
00022
00023 class KSharedPixmapPrivate;
00024
00050 class KSharedPixmap:
00051 public QWidget,
00052 public KPixmap
00053 {
00054 Q_OBJECT
00055
00056 public:
00057
00061 KSharedPixmap();
00062
00066 ~KSharedPixmap();
00067
00081 bool loadFromShared(const QString & name, const QRect & rect=QRect());
00082
00089 bool isAvailable(const QString & name) const;
00090
00091 signals:
00097 void done(bool success);
00098
00099 protected:
00100 bool x11Event(XEvent *);
00101
00102 private:
00103 bool copy(const QString & id, const QRect & rect);
00104 void init();
00105
00106 KSharedPixmapPrivate *d;
00107 };
00108 #else
00109
00110 #define KSharedPixmap KPixmap
00111 #endif
00112
00113 #endif
This file is part of the documentation for kdelibs Version 3.1.0.