controlpanelplugins/themeplugin/src/cpthemechanger.h
changeset 12 624337f114fe
parent 11 10d0dd0e43f1
child 14 23411a3be0db
--- a/controlpanelplugins/themeplugin/src/cpthemechanger.h	Fri Apr 16 14:59:22 2010 +0300
+++ b/controlpanelplugins/themeplugin/src/cpthemechanger.h	Mon May 03 12:32:06 2010 +0300
@@ -41,15 +41,26 @@
     {
         QString name;
         HbIcon  icon;
+        HbIcon portraitPreviewIcon;
+        HbIcon landscapePreviewIcon;
         bool operator < (const struct ThemeInfo &other) const   {			
             return name.localeAwareCompare(other.name) < 0;
-        }		
+        }	
+        bool operator == (const struct ThemeInfo &other) const {
+            return name.localeAwareCompare(other.name) == 0;
+        }
     };
-
+    
+    enum ThemeListUserRole {
+        PortraitPreviewRole = Qt::UserRole,
+        LandscapePreviewRole
+    };
+    
     const QList<ThemeInfo> themes() const;
     QAbstractItemModel& model();
 
     const ThemeInfo& currentTheme() const;
+    int indexOf(const ThemeInfo& theme) const;
 
     bool changeTheme(const QString& newtheme);