iaupdate/IAD/engine/controller/inc/iaupdatenodehandlerobserver.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006-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:   ?description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IAD_UPDATE_NODE_HANDLER_OBSERVER_H
       
    21 #define IAD_UPDATE_NODE_HANDLER_OBSERVER_H
       
    22 
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 
       
    27 class MNcdNode;
       
    28 
       
    29 
       
    30 class MIAUpdateNodeHandlerObserver
       
    31 {
       
    32 public:
       
    33 
       
    34     /**
       
    35      * Node load of the node is completed successfully and data of the node
       
    36      * is updated.
       
    37      *
       
    38      * @param aNode The node whose data is updated.
       
    39      * @param aInstalling indicates if the node is being installed (only used by content handler)
       
    40      */
       
    41     virtual void NodeUpdated( MNcdNode* aNode, TBool aInstalling = EFalse ) = 0;
       
    42     
       
    43     /**
       
    44      * Node load of a parent node is completed.
       
    45      *
       
    46      * @param aNode The parent node which is loaded.
       
    47      * @param aError The completion code. KErrNone if the loading
       
    48      * process has been completed successfully. Otherwise some
       
    49      * of the system wide error codes.
       
    50      */
       
    51     virtual void ParentNodeLoadComplete( MNcdNode* aNode, TInt aError ) = 0;
       
    52     
       
    53     /**
       
    54      * All node loads started by this observer are completed.
       
    55      */
       
    56     virtual void NodeLoadsComplete() = 0;
       
    57     
       
    58     /**
       
    59      * All structure loads started by this observer are completed.
       
    60      *
       
    61      * @param aError Completion code:
       
    62      *   - KErrNone if strcuture loads was completed successfully.
       
    63      *   - KErrCancel if the structure load is canceled.
       
    64      *   - Otherwise some of the system wide error codes.
       
    65      *     NOTE: If a structure load operation fails all ongoing structure
       
    66      *     load operations started by this observer are canceled.
       
    67      */
       
    68     virtual void StructureLoadsComplete( TInt aError ) = 0;
       
    69     
       
    70     /**
       
    71      * Child node load has failed.
       
    72      *
       
    73      * @param aError Error code.
       
    74      */
       
    75     virtual void NotifyNodeLoadError( TInt aError ) = 0;
       
    76 
       
    77 
       
    78 protected:
       
    79 
       
    80     /**
       
    81      * Protected destructor to prevent unwanted deletion.
       
    82      * The object can be deleted only through the inherited
       
    83      * classes.
       
    84      */
       
    85     virtual ~MIAUpdateNodeHandlerObserver() { }
       
    86 
       
    87 };
       
    88 
       
    89 #endif // IAD_UPDATE_NODE_HANDLER_OBSERVER_H
       
    90