summaryrefslogtreecommitdiff
path: root/library/styleinterface.h
authorsandman <sandman>2002-10-04 01:22:50 (UTC)
committer sandman <sandman>2002-10-04 01:22:50 (UTC)
commitb7ec6d0674f0f7835da7f114683dcfa74e6bc546 (patch) (side-by-side diff)
treea2dff60b917d943543458f3e47d67f1584fbfb6c /library/styleinterface.h
parente2f23d8a5169ffef63dcbbac920f68ef0f113792 (diff)
downloadopie-b7ec6d0674f0f7835da7f114683dcfa74e6bc546.zip
opie-b7ec6d0674f0f7835da7f114683dcfa74e6bc546.tar.gz
opie-b7ec6d0674f0f7835da7f114683dcfa74e6bc546.tar.bz2
changes to make the style interface BC with Qtopia 1.6, while still
supporting our extended features
Diffstat (limited to 'library/styleinterface.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/styleinterface.h39
1 files changed, 19 insertions, 20 deletions
diff --git a/library/styleinterface.h b/library/styleinterface.h
index 9fea636..b50f239 100644
--- a/library/styleinterface.h
+++ b/library/styleinterface.h
@@ -20,41 +20,40 @@
#ifndef QT_NO_COMPONENT
-// {6C33B4F9-D529-453A-8FB3-DA42B21872BD}
-# ifndef IID_Style
-# define IID_Style QUuid( 0x6c33b4f9, 0xd529, 0x453a, 0x8f, 0xb3, 0xda, 0x42, 0xb2, 0x18, 0x72, 0xbd)
+// {17AF792C-E461-49A9-9B71-068B9A8DDAE4}
+#ifndef IID_Style
+#define IID_Style QUuid( 0x17af792c, 0xe461, 0x49a9, 0x9b, 0x71, 0x06, 0x8b, 0x9a, 0x8d, 0xda, 0xe4)
#endif
-// {9757A252-3FD4-438F-A756-80BE4A9FB8DC}
-# ifndef IID_StyleSettings
-# define IID_StyleSettings QUuid( 0x9757a252, 0x3fd4, 0x438f, 0xa7, 0x56, 0x80, 0xbe, 0x4a, 0x9f, 0xb8, 0xdc)
-# endif
+// {6C33B4F9-D529-453A-8FB3-DA42B21872BD}
+# ifndef IID_StyleExtended
+# define IID_StyleExtended QUuid( 0x6c33b4f9, 0xd529, 0x453a, 0x8f, 0xb3, 0xda, 0x42, 0xb2, 0x18, 0x72, 0xbd)
+#endif
#endif
class QWidget;
class QStyle;
+
+class QStyle;
+
struct StyleInterface : public QUnknownInterface
{
//! Return a new style.
- virtual QStyle *create ( ) = 0;
-
- //! Return a (longer) description for the style.
- virtual QString description ( ) = 0;
-
+ virtual QStyle *style() = 0;
//! Return a short name for the style.
- virtual QString name ( ) = 0;
-
- //! Return the library basename (libliquid.so => liquid)
- virtual QCString key ( ) = 0;
-
- //! QT_VERSION like 1.2.3 == 123
- virtual unsigned int version ( ) = 0;
+ virtual QString name() const = 0;
};
-struct StyleSettingsInterface : public QUnknownInterface
+struct StyleExtendedInterface : public StyleInterface
{
+ //! Return a (longer) description for the style.
+ virtual QString description ( ) = 0;
+
+ //! Does this style support customization
+ virtual bool hasSettings ( ) const = 0;
+
//! Return a new settings page.
virtual QWidget *create ( QWidget *parent, const char *name = 0 ) = 0;