ncdengine/provider/server/inc/ncdoperationqueue.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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:   ?Description
       
    15 *
       
    16 */
       
    17 	
       
    18 
       
    19 #ifndef M_NCDOPERATIONQUEUE_H
       
    20 #define M_NCDOPERATIONQUEUE_H
       
    21 
       
    22 class CNcdBaseOperation;
       
    23 
       
    24 /**
       
    25  *  An interface for handling operations that must not run simultaneously.
       
    26  *
       
    27  *  This interface is used add an operation to queue and to notify the
       
    28  *  queue when a queued operation is complete.
       
    29  */
       
    30 class MNcdOperationQueue                                    
       
    31     {
       
    32     
       
    33 public:
       
    34 
       
    35 
       
    36     /**
       
    37      * Queues the operation.
       
    38      *
       
    39      * @param aOperation The operation to queue.
       
    40      */
       
    41     virtual void QueueOperationL( CNcdBaseOperation& aOperation ) = 0;
       
    42     
       
    43     /**
       
    44      * Notifies the queue about completion of the operation, so the next
       
    45      * operation in the queue can be started.
       
    46      */
       
    47     virtual void QueuedOperationComplete( CNcdBaseOperation& aOperation ) = 0;
       
    48 
       
    49 protected:
       
    50 
       
    51     /**
       
    52      *
       
    53      */
       
    54     virtual ~MNcdOperationQueue() {}
       
    55 
       
    56 	};
       
    57 	
       
    58 	
       
    59 #endif //  M_NCDOPERATIONQUEUE_H