controlpanelplugins/themeplugin/src/cpthemeclientqt_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 CPTHEMECLIENTQT_P_H
       
    19 #define CPTHEMECLIENTQT_P_H
       
    20 
       
    21 #include <QIcon>
       
    22 #include "cpthemecommon_p.h"
       
    23 
       
    24 class QString;
       
    25 class QSizeF;
       
    26 class QLocalSocket;
       
    27 
       
    28 class CpThemeClientPrivate : public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     CpThemeClientPrivate();
       
    34     bool connectToServer();
       
    35     bool isConnected();
       
    36 
       
    37     bool changeTheme(const QString& newtheme);
       
    38 
       
    39     ~CpThemeClientPrivate();
       
    40     
       
    41 public slots:
       
    42     void themeChanged();
       
    43 
       
    44 public:
       
    45     bool clientConnected;
       
    46 
       
    47 private:
       
    48     void handleThemeChangeRequest(QDataStream &dataStream);
       
    49 
       
    50 private:
       
    51     QLocalSocket* localSocket;
       
    52     QString themeName;
       
    53 };
       
    54 
       
    55 #endif // HBTHEMECLIENTQT_P_H