wvuing/wvuiprocess/Inc/MCABlockingBackgroundObserverPC.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 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:  Callback for background task status change notification
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MCABLOCKINGBACKGROUNDOBSERVERPC_H
       
    20 #define MCABLOCKINGBACKGROUNDOBSERVERPC_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "MCABlockingPC.h"
       
    24 #include "TEnumsPC.h"
       
    25 #include <e32std.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  Callback for background task status change notification from UI
       
    31 *
       
    32 *  @lib wvuiprocessng.lib
       
    33 *  @since 3.2
       
    34 */
       
    35 class MCABlockingBackgroundObserverPC
       
    36     {
       
    37 
       
    38     public:
       
    39 
       
    40         /**
       
    41         * Call if an event happend that match registered task and event mask.
       
    42         * @param aEventSource is the source of event
       
    43         * @param aStatus is the status of the background task
       
    44         * @param aSubTaskNumber is the number of subtask
       
    45         * @param aLeaveCode is the leave code of the task/subtask
       
    46         */
       
    47         virtual void HandleBackgroundEventPC(
       
    48             TEnumsPC::TCABackgroundTasks aEventSource,
       
    49             TEnumsPC::TCABackgroundStatus aStatus,
       
    50             TInt aSubTaskNumber,
       
    51             TInt aLeaveCode
       
    52         ) = 0;
       
    53 
       
    54     public:
       
    55 
       
    56         /**
       
    57         * Destructor.
       
    58         */
       
    59         virtual ~MCABlockingBackgroundObserverPC() {};
       
    60     };
       
    61 
       
    62 #endif      // MCABLOCKINGBACKGROUNDOBSERVERPC_H
       
    63 
       
    64 // End of File