equal
deleted
inserted
replaced
27 #define HBSTYLEINTERFACE_H |
27 #define HBSTYLEINTERFACE_H |
28 |
28 |
29 #include <hbglobal.h> |
29 #include <hbglobal.h> |
30 #include <hbstyle.h> |
30 #include <hbstyle.h> |
31 class HbWidgetBase; |
31 class HbWidgetBase; |
|
32 |
|
33 // DEPRECATED API (style plugins are deprecated) |
32 // Interface used with HbStyle plugins, see HbStyle documentation for more information |
34 // Interface used with HbStyle plugins, see HbStyle documentation for more information |
33 class HbStyleInterface |
35 class HbStyleInterface |
34 { |
36 { |
35 public: |
37 public: |
36 virtual ~HbStyleInterface() {} |
38 virtual ~HbStyleInterface() {} |
37 |
39 |
38 virtual int primitiveCount() const = 0; |
40 virtual int primitiveCount() const = 0; |
39 virtual QGraphicsItem *createPrimitive( HbStyle::Primitive primitive, QGraphicsItem *parent = 0 ) const = 0; |
41 virtual QGraphicsItem *createPrimitive( HbStyle::Primitive primitive, QGraphicsItem *parent = 0 ) const = 0; |
40 virtual void updatePrimitive( QGraphicsItem *item, HbStyle::Primitive primitive, const QStyleOption *option ) const = 0; |
42 virtual void updatePrimitive( QGraphicsItem *item, HbStyle::Primitive primitive, const QStyleOption *option ) const = 0; |
41 virtual QString layoutPath() const = 0; |
43 virtual QString layoutPath() const = 0; |
|
44 void deprecated(); |
42 }; |
45 }; |
43 |
46 |
44 Q_DECLARE_INTERFACE(HbStyleInterface, "com.nokia.Hb.StyleInterface") |
47 Q_DECLARE_INTERFACE(HbStyleInterface, "com.nokia.Hb.StyleInterface") |
45 |
48 |
46 #endif // HBSTYLEINTERFACE_H |
49 #endif // HBSTYLEINTERFACE_H |