homescreensrv_plat/sapi_homescreenplugin/tsrc/common/inc/mt_hspsinstallationservice.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Theme handler class declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_MT_HSPSINSTALLATIONSERVICE_H
       
    20 #define C_MT_HSPSINSTALLATIONSERVICE_H
       
    21 
       
    22 
       
    23 // SYSTEM INCLUDES
       
    24 
       
    25 #include <e32base.h>
       
    26 #include <hspsthememanagement.h>
       
    27 
       
    28 
       
    29 // USER INCLUDES
       
    30 
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 class ChspsDomNode;
       
    34 class ChspsResult;
       
    35 class ChspsODT;
       
    36 class ChspsClient;
       
    37 
       
    38 /**
       
    39   * This class provides HSPS installation services 
       
    40  */
       
    41 class MT_CHspsInstallationService : public CBase, public MhspsThemeManagementServiceObserver
       
    42     {
       
    43     public: // Constructor and destructor
       
    44 
       
    45         /**
       
    46          * Two-phased constructor.
       
    47          * @return CHspsConfigurationService*
       
    48          */
       
    49         static MT_CHspsInstallationService* NewL();
       
    50     
       
    51         /**
       
    52          * Destructor.
       
    53          */
       
    54         virtual ~MT_CHspsInstallationService();
       
    55 
       
    56     private: // Constructors
       
    57 
       
    58         /**
       
    59          * Constructor
       
    60         */
       
    61         MT_CHspsInstallationService();
       
    62     
       
    63         /**
       
    64          * Symbian Constructor
       
    65         */
       
    66         void ConstructL();
       
    67 
       
    68 
       
    69     public: // From base class MhspsThemeManagementServiceObserver
       
    70 
       
    71        
       
    72         /**
       
    73          * Realisation of MhspsThemeManagementServiceObserver Interface
       
    74          * @param aMessage contains a service completion message
       
    75          */
       
    76         void HandlehspsClientMessage( ThspsServiceCompletedMessage aMessage );
       
    77 
       
    78     public: // New methods
       
    79        
       
    80         void InstallConfigurationL( const TDesC& aManifestFileName );
       
    81         void UninstallConfigurationL( TInt aAppUid, TInt aConfUid );
       
    82                 
       
    83         
       
    84     private: // Methods
       
    85         void InstallThemeL(const TDesC& aManifestFileName);
       
    86 
       
    87     private: // Data        
       
    88 
       
    89         // Pointer to HSPS Theme server client object
       
    90         ChspsClient*                   iHspsClient;
       
    91         TBuf8<KMaxHeaderDataLength8>   iHeaderData;
       
    92         TRequestStatus                 iStatus;      
       
    93         ChspsResult*                   iResult;
       
    94         ChspsODT*                      iHeader;
       
    95         CActiveSchedulerWait*          iLoop;
       
    96     };
       
    97 
       
    98 #endif // C_MT_HSPSINSTALLATIONSERVICE_H
       
    99 
       
   100 // End of File.