controlpanelplugins/themeplugin/src/cpthemechanger.h
changeset 12 624337f114fe
parent 11 10d0dd0e43f1
child 14 23411a3be0db
equal deleted inserted replaced
11:10d0dd0e43f1 12:624337f114fe
    39 
    39 
    40     struct ThemeInfo 
    40     struct ThemeInfo 
    41     {
    41     {
    42         QString name;
    42         QString name;
    43         HbIcon  icon;
    43         HbIcon  icon;
       
    44         HbIcon portraitPreviewIcon;
       
    45         HbIcon landscapePreviewIcon;
    44         bool operator < (const struct ThemeInfo &other) const   {			
    46         bool operator < (const struct ThemeInfo &other) const   {			
    45             return name.localeAwareCompare(other.name) < 0;
    47             return name.localeAwareCompare(other.name) < 0;
    46         }		
    48         }	
       
    49         bool operator == (const struct ThemeInfo &other) const {
       
    50             return name.localeAwareCompare(other.name) == 0;
       
    51         }
    47     };
    52     };
    48 
    53     
       
    54     enum ThemeListUserRole {
       
    55         PortraitPreviewRole = Qt::UserRole,
       
    56         LandscapePreviewRole
       
    57     };
       
    58     
    49     const QList<ThemeInfo> themes() const;
    59     const QList<ThemeInfo> themes() const;
    50     QAbstractItemModel& model();
    60     QAbstractItemModel& model();
    51 
    61 
    52     const ThemeInfo& currentTheme() const;
    62     const ThemeInfo& currentTheme() const;
       
    63     int indexOf(const ThemeInfo& theme) const;
    53 
    64 
    54     bool changeTheme(const QString& newtheme);
    65     bool changeTheme(const QString& newtheme);
    55 	
    66 	
    56 	bool connectToServer();
    67 	bool connectToServer();
    57 	bool isConnected() const;
    68 	bool isConnected() const;