wvuing/wvcommandutils/Inc/MCACommand.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:  Interface for commands
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MCACOMMAND_H
       
    21 #define MCACOMMAND_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32std.h>
       
    25 #include "MCACommandObserver.h"
       
    26 
       
    27 
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 
       
    32 
       
    33 // CLASS DECLARATION
       
    34 /**
       
    35 *
       
    36 *
       
    37 */
       
    38 class MCACommand
       
    39     {
       
    40 
       
    41     public: // New functions
       
    42         /**
       
    43         * Executes the command.
       
    44         *
       
    45         */
       
    46         virtual void ExecuteCommandL() = 0;
       
    47 
       
    48         /**
       
    49         * Cancels the command execution, only for asynchronous commands.
       
    50         *
       
    51         */
       
    52         virtual void CancelCommand() = 0;
       
    53 
       
    54         /**
       
    55         * Sets command observer.
       
    56         * @param aObserver Reference to the command observer.
       
    57         */
       
    58         virtual void SetObserver( MCACommandObserver& aObserver ) = 0;
       
    59 
       
    60         /**
       
    61         * @return ETrue if the command is asynchronous, otherwise EFalse.
       
    62         */
       
    63         virtual TBool IsAsynchronous() = 0;
       
    64 
       
    65         virtual ~MCACommand() {}
       
    66     };
       
    67 
       
    68 #endif      // MCACOMMAND_H
       
    69 
       
    70 // End of File