00001 #ifndef FAITH__CLIPBOARD_H
00002 #define FAITH__CLIPBOARD_H
00003
00004 #include <faith/string.h>
00005 #include <faith/object.h>
00006
00007 #ifndef ScreenOfDisplay
00008 struct XSelectionEvent;
00009 #endif
00010
00011 namespace Faith
00012 {
00013
00014 class Application;
00015
00016 class Clipboard : public Faith::Object
00017 {
00018 Q_OBJECT
00019 friend class Application;
00020 struct ClipboardPrivate;
00021 ClipboardPrivate *d;
00022
00023 Clipboard();
00024 ~Clipboard();
00025 public:
00026 void setText(const Faith::String &str);
00027
00028 Faith::String text() const;
00029
00030 private:
00031 void xNotify(XSelectionEvent *xe);
00032 };
00033
00034 }
00035
00036
00037 #endif