wvuing/wvcommandutils/Inc/CCACommandManagerFactory.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 Manager Factory
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CCACOMMANDMANAGERFACTORY_H
       
    21 #define CCACOMMANDMANAGERFACTORY_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "CCASingletonCmd.h"
       
    25 
       
    26 
       
    27 //FORWARD DECLARATIONS
       
    28 class MCACommandFactory;
       
    29 class MCAProcessManager;
       
    30 class CCASessionHandlerCmd;
       
    31 class CCACommandManager;
       
    32 class MCAUiLoginCmdCB;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  Command Manager Factory
       
    38 *  This class is singleton
       
    39 *
       
    40 */
       
    41 NONSHARABLE_CLASS( CCACommandManagerFactory ) : public CCASingletonCmd
       
    42     {
       
    43 public:  // Constructors
       
    44 
       
    45     static CCACommandManagerFactory* NewL();
       
    46 
       
    47 public: // New functions
       
    48 
       
    49     /**
       
    50     * Return pointer to the singleton instance.
       
    51     *
       
    52     * @return pointer to the singleton instance
       
    53     */
       
    54     IMPORT_C static CCACommandManagerFactory* InstanceL();
       
    55 
       
    56 
       
    57     /* Delete singleton instance.
       
    58     *
       
    59     */
       
    60     IMPORT_C static void ReleaseResources();
       
    61 
       
    62     /**
       
    63     * This method is used to get the command manager
       
    64     */
       
    65     IMPORT_C CCACommandManager* GetCommandManager();
       
    66 
       
    67 
       
    68     /**
       
    69     * This method constructs the session handler and also initialises
       
    70     * the Command Manager's session handler
       
    71     */
       
    72     IMPORT_C void InitializeSessionHandlerL( MCAProcessManager& aProcessManager,
       
    73                                              MCAUiLoginCmdCB& aUiLoginCmdCB );
       
    74 
       
    75 
       
    76 
       
    77 
       
    78 private:
       
    79 
       
    80     /**
       
    81     * Destructor.
       
    82     */
       
    83     ~CCACommandManagerFactory();
       
    84 
       
    85     /**
       
    86     * C++ default constructor.
       
    87     */
       
    88     inline CCACommandManagerFactory();
       
    89 
       
    90     /**
       
    91     * Symbian 2nd phase constructor.
       
    92     */
       
    93     inline void ConstructL();
       
    94 
       
    95 private:     // Data
       
    96     // Command manager, owns
       
    97     CCACommandManager* iCommandManager;
       
    98     //SessionHandler, owns
       
    99     CCASessionHandlerCmd* iSessionHandlerCmd;
       
   100 
       
   101     };
       
   102 
       
   103 #endif      // CCACommandManagerFactory_H
       
   104 
       
   105 // End of File