skins/AknSkins/srvinc/AknsSkinChangeHandler.h
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     1 /*
       
     2 * Copyright (c) 2002-2008 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:  Skin change handler.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef AKNSSKINCHANGEHANDLER_H
       
    21 #define AKNSSKINCHANGEHANDLER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // DATA TYPES
       
    27 enum TAknsSkinChangeHandlerNotification
       
    28     {
       
    29     EAknsSCHNContentChanged         = 1,
       
    30     EAknsSCHNPackageListUpdate      = 2,
       
    31     EAknsSCHNConfigurationMerged    = 3,
       
    32     EAknsSCHNConfigurationDeployed  = 4,
       
    33     EAknsSCHNConfigurationOOM       = 5,
       
    34     EAknsSCHNConfigurationCorrupt   = 6,
       
    35     EAknsSCHNMorphingStateChange    = 7,
       
    36     EAknsSCHNWallpaperChanged       = 8,
       
    37     EAknsSCHNFlushClientSideCaches  = 9,
       
    38     EAknsSCHNAnimBackgroundChanged  = 10,
       
    39 	EAknsSCHNSSWallpaperChanged     = 11,
       
    40     };
       
    41 
       
    42 // FORWARD DECLARATIONS
       
    43 class RAknsSrvSession;
       
    44 
       
    45 // CLASS DECLARATION
       
    46 
       
    47 /**
       
    48 * Internal class that handles observer notifications.
       
    49 *
       
    50 * @since 2.0
       
    51 *
       
    52 * @internal
       
    53 */
       
    54 NONSHARABLE_CLASS(CAknsSkinChangeHandler) : public CActive
       
    55     {
       
    56     public:
       
    57 
       
    58         /**
       
    59         * Constructor.
       
    60         */
       
    61         CAknsSkinChangeHandler(RAknsSrvSession& aSession, TInt aPriority);
       
    62 
       
    63         /**
       
    64         * Destructor.
       
    65         */
       
    66         ~CAknsSkinChangeHandler();
       
    67 
       
    68     public:
       
    69 
       
    70         /**
       
    71         * Propagates skin change events.
       
    72         */
       
    73         void HandleSkinChange(
       
    74             const TAknsSkinChangeHandlerNotification aType );
       
    75 
       
    76     public:
       
    77 
       
    78         /**
       
    79         * Sets the active status.
       
    80         */
       
    81         void SetActive(); //lint !e1511 Hiding allowed
       
    82 
       
    83     private: // From CActive
       
    84 
       
    85         /**
       
    86         * Run method.
       
    87         */
       
    88         void RunL();
       
    89 
       
    90         /**
       
    91         * Cancellation.
       
    92         */
       
    93         void DoCancel();
       
    94 
       
    95     private: // Data
       
    96 
       
    97         TBool* iDestroyedPtr;
       
    98         RAknsSrvSession& iSession;
       
    99 
       
   100     };
       
   101 
       
   102 #endif // AKNSSKINCHANGEHANDLER_H
       
   103 
       
   104 // End of File