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