iaupdate/IAD/engine/controller/inc/iaupdateoperation.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IA_UPDATE_OPERATION_H
       
    21 #define IA_UPDATE_OPERATION_H
       
    22 
       
    23 
       
    24 class CIAUpdateNode;
       
    25 class MIAUpdateContentOperationObserver;
       
    26 
       
    27 
       
    28 /**
       
    29  * MIAUpdateOperation
       
    30  *
       
    31  * General interface for all the node operations.
       
    32  *
       
    33  * @see MIAUpdateContentOperationObserver
       
    34  */
       
    35 class MIAUpdateOperation
       
    36     {
       
    37     
       
    38 public:
       
    39 
       
    40     /**
       
    41      * Empty destructor defined for this interface.
       
    42      * Now, the object can be deleted through this interface.
       
    43      */
       
    44     virtual ~MIAUpdateOperation() { }
       
    45 
       
    46 
       
    47     /**
       
    48      * @return TBool ETrue if the operation was started and observer's  
       
    49      * MIAUpdateContentOperationObserver::ContentOperationComplete callback
       
    50      * function will be called when completed. EFalse if operation was not started.
       
    51      */
       
    52     virtual TBool StartOperationL() = 0;
       
    53     
       
    54     /**
       
    55      * Will result a call to observer ContentOperationComplete
       
    56      * function if operation is on.
       
    57      */
       
    58     virtual void CancelOperation() = 0;    
       
    59         
       
    60     };
       
    61 
       
    62 #endif // IA_UPDATE_OPERATION_H
       
    63