summaryrefslogtreecommitdiffstats
path: root/krandr/libkrandr.h
diff options
context:
space:
mode:
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);