diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 47d455dd55be855e4cc691c32f687f723d9247ee (patch) | |
tree | 52e236aaa2576bdb3840ebede26619692fed6d7d /ksnapshot/ksnapshotiface.h | |
download | tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksnapshot/ksnapshotiface.h')
-rw-r--r-- | ksnapshot/ksnapshotiface.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/ksnapshot/ksnapshotiface.h b/ksnapshot/ksnapshotiface.h new file mode 100644 index 00000000..6b1f3477 --- /dev/null +++ b/ksnapshot/ksnapshotiface.h @@ -0,0 +1,65 @@ +/** KSnapshot DCOP interface + File: ksnapshotiface.h + Date: January 12, 2001 + Author: Ian Geiser <[email protected]> + Comments: + This is an addition to the existing KSnapshot code + that will allow other applications to access internal + public member functions via dcop. +**/ + +#ifndef __KS_IFACE_H +#define __KS_IFACE_H + +#include <dcopobject.h> + +class KSnapshotIface : virtual public DCOPObject +{ + K_DCOP + k_dcop: + /** the current filename (as a URL) that will + be used to save to */ + virtual QString url() const = 0; + + /** Grab an image **/ + virtual void slotGrab() = 0; + + /** Prints the image. */ + virtual void slotPrint() = 0; + + /** Saves the image **/ + virtual void slotSave() = 0; + + /** Save the image to the specified filename */ + virtual bool save(const QString &filename) = 0; + + /** Saves image as **/ + virtual void slotSaveAs() = 0; + + /** Copy the snapshot to the clipboard. **/ + virtual void slotCopy() = 0; + + /** Set the timeout value */ + virtual void setTime(int newTime) = 0; + + /** Get the current timeout value */ + virtual int timeout() = 0; + + /** Set the URL to the file to save **/ + virtual void setURL(const QString &newURL) = 0; + + /** Set the ability to grab the entire screen, just the window + containing the mouse, or a region */ + virtual void setGrabMode(int grab) = 0; + + /** Return the current grab mode */ + virtual int grabMode() = 0; + + /** Move the mouse pointer. */ + virtual void slotMovePointer( int x, int y ) = 0; + + /** Exit KSnapshot **/ + virtual void exit() = 0; +}; + +#endif |