summaryrefslogtreecommitdiffstats
path: root/knewsticker/common/configiface.h
diff options
context:
space:
mode:
Diffstat (limited to 'knewsticker/common/configiface.h')
-rw-r--r--knewsticker/common/configiface.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/knewsticker/common/configiface.h b/knewsticker/common/configiface.h
new file mode 100644
index 00000000..64bc312d
--- /dev/null
+++ b/knewsticker/common/configiface.h
@@ -0,0 +1,56 @@
+/*
+ * configface.h
+ *
+ * Copyright (c) 2001 Frerich Raabe <raabe@kde.org>
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. For licensing and distribution details, check the
+ * accompanying file 'COPYING'.
+ */
+#ifndef CONFIGIFACE_H
+#define CONFIGIFACE_H
+
+class QColor;
+class QStringList;
+class QFont;
+
+class KURL;
+
+class ConfigIface
+{
+ public:
+ enum Direction {Left = 0, Right, Up, Down, UpRotated, DownRotated};
+
+ virtual unsigned int interval() const = 0;
+ virtual unsigned int scrollingSpeed() const = 0;
+ virtual unsigned int mouseWheelSpeed() const = 0;
+ virtual unsigned int scrollingDirection() const = 0;
+ virtual bool customNames() const = 0;
+ virtual bool scrollMostRecentOnly() const = 0;
+ virtual bool offlineMode() const = 0;
+ virtual bool underlineHighlighted() const = 0;
+ virtual bool showIcons() const = 0;
+ virtual bool slowedScrolling() const = 0;
+ virtual QColor foregroundColor() const = 0;
+ virtual QColor backgroundColor() const = 0;
+ virtual QColor highlightedColor() const = 0;
+ virtual QStringList newsSources() const = 0;
+
+ virtual void setInterval(const unsigned int) = 0;
+ virtual void setScrollingSpeed(const unsigned int) = 0;
+ virtual void setMouseWheelSpeed(const unsigned int) = 0;
+ virtual void setScrollingDirection(const unsigned int) = 0;
+ virtual void setCustomNames(bool) = 0;
+ virtual void setScrollMostRecentOnly(bool) = 0;
+ virtual void setOfflineMode(bool) = 0;
+ virtual void setUnderlineHighlighted(bool) = 0;
+ virtual void setShowIcons(bool) = 0;
+ virtual void setSlowedScrolling(bool) = 0;
+ virtual void setForegroundColor(const QColor &) = 0;
+ virtual void setBackgroundColor(const QColor &) = 0;
+ virtual void setHighlightedColor(const QColor &) = 0;
+ virtual void setNewsSources(const QStringList &) = 0;
+};
+
+#endif // CONFIGIFACE_H