controlpanelplugins/themeplugin/src/cpthemeclientsymbian_p.h
changeset 19 36aa4756ee82
parent 11 10d0dd0e43f1
equal deleted inserted replaced
12:624337f114fe 19:36aa4756ee82
     1 /*
     1 /*
     2 * Copyright (c) 2008-2010 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: 
    14  * Description:  
    15 *
    15  *   
    16 */
    16  */
    17 
       
    18 
    17 
    19 #ifndef CPTHEMECLIENTSYMBIAN_P_H
    18 #ifndef CPTHEMECLIENTSYMBIAN_P_H
    20 #define CPTHEMECLIENTSYMBIAN_P_H
    19 #define CPTHEMECLIENTSYMBIAN_P_H
    21 
    20 
    22 
    21 #include <QString>
    23 #include <QIcon>
       
    24 // TODO Do we need this?
       
    25 //#include "hbthemecommon_p.h"
       
    26 //ToDo: replace this with forward declaration
       
    27 #if !defined(__E32BASE_H__)
    22 #if !defined(__E32BASE_H__)
    28 #include <e32base.h>
    23 #include <e32base.h>
    29 #endif
    24 #endif
    30 
    25 
    31 class CThemeListenerPrivate;
    26 class CpThemeClientPrivate
    32 class QSizeF;
       
    33 class HbEffectFxmlData;
       
    34 struct MeshItem;
       
    35 
       
    36 class CpThemeClientPrivate : public RSessionBase
       
    37 {
    27 {
    38 public:
    28 public:
    39     CpThemeClientPrivate();
    29     CpThemeClientPrivate();
    40 
    30 
    41     bool connectToServer();
    31     bool connectToServer();
       
    32     
       
    33     bool changeTheme(const QString& newtheme);
       
    34     
    42     bool isConnected();
    35     bool isConnected();
    43 
    36 
    44     bool changeTheme(const QString& newtheme);
       
    45     ~CpThemeClientPrivate();
    37     ~CpThemeClientPrivate();
    46     
       
    47 public:
       
    48     bool clientConnected;
       
    49 
       
    50 private:
       
    51     TVersion Version() const;
       
    52     TInt StartServer();
       
    53     TInt CreateServerProcess();
       
    54     
       
    55 private:
       
    56     CThemeListenerPrivate *themelistener;
       
    57     QString themeName;
       
    58     bool connected;
       
    59 };
    38 };
    60 
    39 
    61 #endif /* CPTHEMECLIENTSYMBIAN_P_H */
    40 #endif /* CPTHEMECLIENTSYMBIAN_P_H */