controlpanelplugins/themeplugin/src/cpthemechanger.h
changeset 19 36aa4756ee82
parent 12 624337f114fe
child 17 4a9568303383
equal deleted inserted replaced
12:624337f114fe 19:36aa4756ee82
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0""
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8  *
     9 * Initial Contributors:
     9  * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11 *
    11  *
    12 * Contributors:
    12  * Contributors:
    13 *
    13  *
    14 * Description:  HbThemeChanger class definition
    14  * Description:  
    15 *
    15  *   
    16 */
    16  */
    17 
       
    18 
    17 
    19 #ifndef CPTHEMECHANGER_H
    18 #ifndef CPTHEMECHANGER_H
    20 #define CPTHEMECHANGER_H
    19 #define CPTHEMECHANGER_H
    21 
    20 
    22 #include <QStringList>
    21 #include <QStringList>
    54     enum ThemeListUserRole {
    53     enum ThemeListUserRole {
    55         PortraitPreviewRole = Qt::UserRole,
    54         PortraitPreviewRole = Qt::UserRole,
    56         LandscapePreviewRole
    55         LandscapePreviewRole
    57     };
    56     };
    58     
    57     
    59     const QList<ThemeInfo> themes() const;
       
    60     QAbstractItemModel& model();
    58     QAbstractItemModel& model();
    61 
    59 
    62     const ThemeInfo& currentTheme() const;
    60     const ThemeInfo& currentTheme() const;
    63     int indexOf(const ThemeInfo& theme) const;
    61     int indexOf(const ThemeInfo& theme) const;
    64 
    62