wvuing/wvcommandutils/Inc/CCAAppSettCommand.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:  Command to get the Settings Interface for getting/setting tonefilename etc
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CCAAPPSETTCOMMAND_H
       
    21 #define CCAAPPSETTCOMMAND_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "MCACommand.h"
       
    25 #include "MCASettingsCommand.h"
       
    26 #include "MCASettingSapExt.h"
       
    27 #include "CCACommandSettingSapExtCmd.h"
       
    28 #include "MCASettingsPc.h"
       
    29 #include "CIMPSSAPSettings.h"
       
    30 #include "MCAProcessManager.h"
       
    31 #include "CCASessionHandlerCmd.h"
       
    32 #include "CCAEngine.h"
       
    33 #include "MCAUiSettingsDialogCmdCB.h"
       
    34 
       
    35 
       
    36 #include <e32base.h>
       
    37 
       
    38 
       
    39 // CLASS DECLARATION
       
    40 class CProcessManager;
       
    41 class MCAChatAppSettCommand;
       
    42 class MCAUiBaseCmdCB;
       
    43 class MCAProcessManager;
       
    44 class CIMPSSAPSettings;
       
    45 class CPEngNWSessionSlotID2;
       
    46 class MCAUiSettingsDialogCmdCB;
       
    47 
       
    48 
       
    49 
       
    50 /**
       
    51 *  Command base class.
       
    52 *
       
    53 *  @lib N/A
       
    54 *
       
    55 */
       
    56 NONSHARABLE_CLASS( CCAAppSettCommand ) : public CBase,
       
    57         public MCASettingsCommand
       
    58     {
       
    59 public: // Constructors and destructor
       
    60 
       
    61     /**
       
    62     * Two-phased constructor.
       
    63     * @param aProcessManager Reference to the process manager component
       
    64     * @param aSetting Reference to the UI Settings Callback interface
       
    65     * @to get the required parameters from UI side
       
    66     */
       
    67 
       
    68     static CCAAppSettCommand* NewL( MCAProcessManager& aProcessManager,
       
    69     MCAUiSettingsDialogCmdCB& aSetting );
       
    70 
       
    71     /**
       
    72     * Two-phased constructor.
       
    73     * @param aProcessManager Reference to the process manager component
       
    74     * @param aSetting Reference to the interface
       
    75     * @to get the required parameters from UI side
       
    76     */
       
    77 
       
    78     static CCAAppSettCommand* NewLC( MCAProcessManager& aProcessManager,
       
    79                                      MCAUiSettingsDialogCmdCB& aSetting );
       
    80 
       
    81     /*
       
    82     Destructor.
       
    83     */
       
    84     virtual ~CCAAppSettCommand();
       
    85 
       
    86 public:
       
    87 
       
    88     /**
       
    89     * Set command observer.
       
    90     *
       
    91     * @param aObserver Command observer
       
    92     */
       
    93     void SetObserver( MCACommandObserver& aObserver );
       
    94 
       
    95     /**
       
    96     * Cancel command.
       
    97     *
       
    98     */
       
    99     void CancelCommand();
       
   100     /**
       
   101     * Executes the command.
       
   102     *
       
   103     */
       
   104     void ExecuteCommandL();
       
   105 
       
   106     /**
       
   107     *
       
   108     * @return ETrue if the command is asynchronous, otherwise EFalse.
       
   109     */
       
   110     TBool IsAsynchronous();
       
   111 
       
   112 
       
   113     /*
       
   114     * @GetAppSettingsSAPExt returns the interface
       
   115     * @used for getting/setting Application Settings
       
   116     */
       
   117     MCASettingSapExt*  GetAppSettingsSAPExt();
       
   118 
       
   119 protected:
       
   120 
       
   121     /**
       
   122     * Complete command.
       
   123     * @param aError Commend completed with this error code
       
   124     */
       
   125     void CompletedL( TInt aError );
       
   126 
       
   127 protected:
       
   128 
       
   129     /**
       
   130     * C++ default constructor.
       
   131     */
       
   132     CCAAppSettCommand( MCAProcessManager& aProcessManager,
       
   133                        MCAUiSettingsDialogCmdCB& aSetting );
       
   134 
       
   135 private:
       
   136     // Ref: command observer
       
   137     MCACommandObserver* iCommandObserver;
       
   138 
       
   139     MCAProcessManager& iProcessManager;
       
   140 
       
   141     CIMPSSAPSettings* iSAPSettings;
       
   142 
       
   143     MCAUiSettingsDialogCmdCB& iAppSetting;
       
   144 
       
   145     MCASettingSapExt* iSapExtension;
       
   146 
       
   147 
       
   148     };
       
   149 
       
   150 #endif      // CCAAPPSETTCOMMAND_H
       
   151 // End of File