wvuing/IMPSConnectionUI/OperationStepInc/MCnUiBaseControlContext.h
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
12:6ca72c0fe49a 13:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Base control context.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MCNUIBASECONTROLCONTEXT_H
       
    19 #define __MCNUIBASECONTROLCONTEXT_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32Base.h>
       
    23 #include <impspresenceconnectionuiconstsng.h>
       
    24 
       
    25 
       
    26 //FORWARD DECLARATIONS
       
    27 class MCnUiConnectionHandler;
       
    28 class CIMPSSAPSettingsStore;
       
    29 class CIMPSSAPSettings;
       
    30 class MCnUiSignaller;
       
    31 class MCnUiConnModeHandler;
       
    32 class MCnUiClientPlugin;
       
    33 class MCnUiGlobalNotificationUiFacade;
       
    34 class CPEngNWSessionSlotID2;
       
    35 
       
    36 
       
    37 // CLASS DECLARATION
       
    38 /**
       
    39  * Base control context.
       
    40  *
       
    41  * @since 2.1
       
    42  */
       
    43 NONSHARABLE_CLASS( MCnUiBaseControlContext )
       
    44     {
       
    45 public: // New static control context access methods
       
    46 
       
    47     /**
       
    48      * Getter for connection handler.
       
    49      * @since 2.1
       
    50      * @return A reference to MCnUiConnectionHandler.
       
    51      */
       
    52     virtual MCnUiConnectionHandler& ConnHandler() = 0;
       
    53 
       
    54 
       
    55     /**
       
    56      * Gets the signaller.
       
    57      *
       
    58      * @since 2.1
       
    59      * @return The signaller.
       
    60      */
       
    61     virtual MCnUiSignaller& Signaller() = 0;
       
    62 
       
    63 
       
    64     /**
       
    65      * Gets the conn mode handler.
       
    66      *
       
    67      * @since 2.1
       
    68      * @return The conn mode handler.
       
    69      */
       
    70     virtual MCnUiConnModeHandler& ConnModeHandler() = 0;
       
    71 
       
    72 
       
    73     /**
       
    74      * Gets the controlled client.
       
    75      *
       
    76      * @since 2.1
       
    77      * @return The controlled client.
       
    78      */
       
    79     virtual TIMPSConnectionClient ControlledClient() = 0;
       
    80 
       
    81 
       
    82 
       
    83 public: // New dynamic control context access methods
       
    84 
       
    85     /**
       
    86      * Gets the SAP Settings Store.
       
    87      *
       
    88      * NOTE!! Dynamic handles might be invalidated
       
    89      * with ReleaseDynamicResources() call so
       
    90      * long lasting pointer caching shouldn't be used
       
    91      * with them.
       
    92      *
       
    93      * @since 2.1
       
    94      * @return The SAP Settings Store.
       
    95      */
       
    96     virtual CIMPSSAPSettingsStore& SapStoreL() = 0;
       
    97 
       
    98 
       
    99     /**
       
   100      * Gets the client plug-in.
       
   101      *
       
   102      * @since 2.1
       
   103      * @return The client plug-in.
       
   104      */
       
   105     virtual MCnUiClientPlugin& ClientPluginL( TIMPSConnectionClient aClient,
       
   106                                               CPEngNWSessionSlotID2& aNWSessionSlotID,
       
   107                                               TBool aRefreshPlugin = EFalse ) = 0;
       
   108 
       
   109 
       
   110     /**
       
   111      * Gets the global notify UI.
       
   112      *
       
   113      * @since 2.1
       
   114      * @return The global notify UI.
       
   115      */
       
   116     virtual MCnUiGlobalNotificationUiFacade& GlobalNotificationUiL() = 0;
       
   117 
       
   118     /**
       
   119      * Gets the active network session slot id
       
   120      * @param aClient the client type
       
   121      * @since 3.0
       
   122      */
       
   123     virtual CPEngNWSessionSlotID2* GetActiveNWSessionSlotIDL(
       
   124         TIMPSConnectionClient aClient ) = 0;
       
   125 
       
   126 
       
   127 protected:  //Destructor
       
   128 
       
   129     /**
       
   130      * Inline destructor.
       
   131      *
       
   132      * Destruction using this
       
   133      * interface isn't possible.
       
   134      */
       
   135     virtual ~MCnUiBaseControlContext() {};
       
   136     };
       
   137 
       
   138 #endif      //  __MCNUIBASECONTROLCONTEXT_H
       
   139 
       
   140 //  End of File
       
   141