controlpanelplugins/themeplugin/src/cpthemechanger.h
branchRCL_3
changeset 14 5f281e37a2f5
parent 13 90fe62538f66
equal deleted inserted replaced
13:90fe62538f66 14:5f281e37a2f5
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0""
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  
       
    15  *   
       
    16  */
       
    17 
       
    18 #ifndef CPTHEMECHANGER_H
       
    19 #define CPTHEMECHANGER_H
       
    20 
       
    21 #include <QStringList>
       
    22 
       
    23 #include <hbicon.h>
       
    24 #include <hbglobal.h>
       
    25 
       
    26 class CpThemeChangerPrivate;
       
    27 class CpThemeInfo;
       
    28 
       
    29 QT_BEGIN_NAMESPACE
       
    30 class QAbstractItemModel;
       
    31 QT_END_NAMESPACE
       
    32 
       
    33 class CpThemeChanger : public QObject
       
    34 {
       
    35     Q_OBJECT
       
    36     
       
    37 public:
       
    38      explicit CpThemeChanger(QObject* parent=0);
       
    39     ~CpThemeChanger();
       
    40     
       
    41     const CpThemeInfo* currentTheme() const;
       
    42     bool changeTheme(const CpThemeInfo& newtheme);
       
    43     
       
    44 signals:
       
    45     void themeChangeFinished();
       
    46     
       
    47 private slots:
       
    48     void changeFinished();
       
    49 	
       
    50 private:
       
    51     void setCurrentTheme();
       
    52     
       
    53     CpThemeInfo* mCurrentTheme;
       
    54 };
       
    55 
       
    56 
       
    57 #endif /* CPTHEMECHANGER_H */