controlpanelplugins/themeplugin/src/cpthemechanger.cpp
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 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implementation of the HbThemeChanger class
       
    15  *
     8  *
    16 */
     9  * Initial Contributors:
    17 
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  
       
    15  *   
       
    16  */
    18 
    17 
    19 #include "cpthemechanger.h"
    18 #include "cpthemechanger.h"
    20 #include "cpthemechanger_p.h"
    19 #include "cpthemechanger_p.h"
    21 
    20 
    22 /*!
    21 /*!
    45     Provides a list of themes as a const QAbstractItemModel*.
    44     Provides a list of themes as a const QAbstractItemModel*.
    46 */
    45 */
    47 QAbstractItemModel& CpThemeChanger::model()
    46 QAbstractItemModel& CpThemeChanger::model()
    48 {
    47 {
    49     Q_D(CpThemeChanger);
    48     Q_D(CpThemeChanger);
    50 
    49    
    51     return d->model;
    50     return d->model;
    52 }
    51 }
    53 
    52 
    54 /*! 
       
    55   Provide a list of currently available themes.
       
    56 */
       
    57 const QList<CpThemeChanger::ThemeInfo> CpThemeChanger::themes() const
       
    58 {
       
    59     Q_D(const CpThemeChanger);
       
    60 
       
    61     return d->themes();
       
    62 }
       
    63 
    53 
    64 /*!
    54 /*!
    65   Creates a connection to the theme server for the purpose of 
    55   Creates a connection to the theme server for the purpose of 
    66   changing the theme.
    56   changing the theme.
    67  */
    57  */