diff -r cc79acdc26cb -r 4a9568303383 controlpanelplugins/themeplugin/src/cpthemeclient_p_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/controlpanelplugins/themeplugin/src/cpthemeclient_p_p.h Fri Jun 11 13:39:17 2010 +0300 @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0"" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: + * + */ + +#ifndef CPTHEMECLIENT_P_P_H +#define CPTHEMECLIENT_P_P_H + +#include +#include "cpthemecommon_p.h" + +#ifdef Q_OS_SYMBIAN +#include +#endif + +class QSizeF; +#ifndef Q_OS_SYMBIAN +class QLocalSocket; +#endif + +class CpThemeClientPrivate : +#ifdef Q_OS_SYMBIAN +public RSessionBase +#else +public QObject +#endif +{ +#ifndef Q_OS_SYMBIAN + Q_OBJECT +#endif + +public: + CpThemeClientPrivate(); + bool connectToServer(); + bool isConnected() const; + bool changeTheme(const QString& newTheme); + ~CpThemeClientPrivate(); + +#ifndef Q_OS_SYMBIAN +public slots: + void changeTheme(); +#endif + +public: + bool clientConnected; + +private: +#ifdef Q_OS_SYMBIAN + TVersion Version() const; + TInt StartServer(); + TInt CreateServerProcess(); +#endif + +private: +#ifdef Q_OS_SYMBIAN + friend class CThemeListenerPrivate; +#else + QLocalSocket* localSocket; +#endif +}; + +#endif // HBTHEMECLIENT_P_P_H