psln/Inc/pslntaskactivatesounds.h
changeset 37 89c890c70182
parent 34 6b5204869ed5
child 45 667edd0b8678
equal deleted inserted replaced
34:6b5204869ed5 37:89c890c70182
     1 /*
       
     2 * Copyright (c) 2004-2006 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:  Background task for activating sounds in skin package.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_PSLNTASKACTIVATESOUNDS_H
       
    20 #define C_PSLNTASKACTIVATESOUNDS_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32std.h>
       
    24 #include <AknWaitNoteWrapper.h>
       
    25 
       
    26 class CPslnSoundActivator;
       
    27 
       
    28 /**
       
    29  *  Background task activator for activating sounds in skin package.
       
    30  *
       
    31  *  @since S60 v2.6
       
    32  */
       
    33 class CPslnTaskActivateSounds : public CBase, public MAknBackgroundProcess
       
    34     {
       
    35 public:
       
    36 
       
    37     /**
       
    38     * C++ constructor.
       
    39     * @param aActivator reference to sound activator.
       
    40     */
       
    41     CPslnTaskActivateSounds( CPslnSoundActivator& aActivator );
       
    42 
       
    43     /**
       
    44     * From MAknBackgroundProcess.
       
    45     * Return ETrue when the process is done.
       
    46     * @return ETrue if process is ready.
       
    47     */
       
    48     TBool IsProcessDone() const;
       
    49 
       
    50     /**
       
    51     * From MAknBackgroundProcess. 
       
    52     * Completes one cycle of the process.
       
    53     */
       
    54     void StepL();
       
    55 
       
    56 private: // data
       
    57 
       
    58     /**
       
    59     * Has the task been done.
       
    60     */
       
    61     TBool iDone;
       
    62 
       
    63     /**
       
    64     * Reference to sound activator.
       
    65     */
       
    66     CPslnSoundActivator& iActivator;
       
    67 
       
    68 public: // public data
       
    69 
       
    70     /**
       
    71     * Has an error occured.
       
    72     */
       
    73     TInt iActivationErr;
       
    74     };
       
    75 
       
    76 #endif // C_PSLNTASKACTIVATESOUNDS_H