controlpanelplugins/themeplugin/src/cpthemeclient_p.h
changeset 25 19394c261aa5
parent 24 f5dfdd5e4a1b
child 27 848a3adde87f
child 31 e79ce701c376
equal deleted inserted replaced
24:f5dfdd5e4a1b 25:19394c261aa5
     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 CPTHEMECLIENT_P_H
       
    19 #define CPTHEMECLIENT_P_H
       
    20 
       
    21 #include <qglobal.h>
       
    22 
       
    23 class CpThemeClientPrivate;
       
    24 
       
    25 class CpThemeClient
       
    26 {
       
    27     CpThemeClientPrivate* d_ptr;
       
    28     Q_DECLARE_PRIVATE_D(d_ptr, CpThemeClient)
       
    29 
       
    30 public:
       
    31     bool connectToServer();
       
    32 
       
    33     bool changeTheme(const QString& newtheme);
       
    34 
       
    35     bool isConnected();
       
    36 
       
    37 public:
       
    38     static CpThemeClient *global();
       
    39     static void releaseInstance();
       
    40     ~CpThemeClient();
       
    41 
       
    42 private:
       
    43     CpThemeClient();
       
    44 };
       
    45 
       
    46 #endif /* CPTHEMECLIENT_P_H */