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