summaryrefslogtreecommitdiffstats
path: root/krandr/libkrandr.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-05-02 04:57:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-05-02 04:57:04 +0000
commitc4b7890322615f756f7553085c75e6e19d6cdf3b (patch)
treecb5ecccc607a8e87eda43d42b8c855f3d9d336d8 /krandr/libkrandr.h
parent2dad7fde32e8ea6ccc660f350182587e7e6b08e1 (diff)
downloadtdelibs-c4b7890322615f756f7553085c75e6e19d6cdf3b.tar.gz
tdelibs-c4b7890322615f756f7553085c75e6e19d6cdf3b.zip
Extension to krandr library to add preliminary ICC color profile support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1121679 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krandr/libkrandr.h')
-rw-r--r--krandr/libkrandr.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/krandr/libkrandr.h b/krandr/libkrandr.h
index e9db64ae9..7d52ac2ca 100644
--- a/krandr/libkrandr.h
+++ b/krandr/libkrandr.h
@@ -29,6 +29,8 @@
#ifdef __cplusplus
+#include <kconfig.h>
+#include <ksimpleconfig.h>
#include <kdelibs_export.h>
/**
@@ -47,6 +49,33 @@ class KRANDR_EXPORT KRandrSimpleAPI : public RandRDisplay
public:
/**
+ * Retrieves the specificed ICC profile filename from the configuration database
+ */
+ QString getIccFileName(QString profileName, QString screenName, QString kde_confdir);
+
+ /**
+ * Applies the specificed ICC profile filename to the specified RandR output
+ * If RandR is not available, the specified file is applied to the current display
+ */
+ QString applyIccFile(QString screenName, QString fileName);
+
+ /**
+ * Applies all saved ICC profile settings to all RandR outputs
+ * If RandR is not available, the settings are applied to the current display
+ */
+ QString applyIccConfiguration(QString profileName, QString kde_confdir);
+
+ /**
+ * Applies saved system wide settings to the current display
+ */
+ QString applySystemWideIccConfiguration(QString kde_confdir);
+
+ /**
+ * Resets the current display
+ */
+ QString clearIccConfiguration(void);
+
+ /**
* Reads current screen information.
*/
ScreenInfo* read_screen_info(Display *display);