sipplugins/sippsipsettingsui/inc/sipsettlistsipsrvsetview.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2005 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:  The (common) controller for the proxy & registrar views
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef SIP_SETT_LIST_SIP_SRV_SET_VIEW_H
       
    21 #define SIP_SETT_LIST_SIP_SRV_SET_VIEW_H
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include <aknview.h>
       
    26 #include <sipprofiletypeinfo.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CSIPSettListSIPSrvSetContainer;
       
    30 class CSIPSettListSIPSrvSetModel;
       
    31 class TSIPSettingsData;
       
    32 class TGSSIPServerData;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  CSIPSettListSIPSrvSetView view class
       
    38 *  @since 3.0
       
    39 *  view class for SIP Server settings
       
    40 */
       
    41 class CSIPSettListSIPSrvSetView : public CAknView
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44         
       
    45         // No two phased construction, because this class will never
       
    46         // be directly instantiated!
       
    47         
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CSIPSettListSIPSrvSetView();
       
    52        
       
    53     protected:  // New functions        
       
    54 
       
    55         /**        
       
    56         * Returns used data structure
       
    57         * Deriving classes must implement this
       
    58         * @return Pointer to used server data structure
       
    59         */
       
    60         virtual TGSSIPServerData* DataStruct() = 0;
       
    61 
       
    62         /**        
       
    63         * Returns used item list resource id
       
    64         * Deriving classes must implement this
       
    65         * @return Resource ID
       
    66         */
       
    67         virtual TInt ResourceID() = 0;
       
    68 
       
    69         /**        
       
    70         * Returns used profile type
       
    71         * Deriving classes must implement this
       
    72         * @return type of selected profile
       
    73         */
       
    74         virtual TSIPProfileTypeInfo::TSIPProfileClass ProfileType() = 0;
       
    75         
       
    76         /**
       
    77         * Checks is currently shown profile locked
       
    78         * Deriving classes must implement this
       
    79         * @return ETrue if profile is locked
       
    80         */
       
    81         virtual TBool ProfileLocked() = 0;
       
    82         
       
    83         /**
       
    84         * Opens up the pop-up list for changing a setting
       
    85         * @param aCommand ID of the command to respond to
       
    86         */
       
    87         void ChangeSettingL( TInt aCommand );
       
    88 
       
    89         /**
       
    90         * Returns to profile setting view
       
    91         */
       
    92         void BackToSettingViewL();
       
    93 
       
    94     protected:  // Functions from base classes
       
    95                 
       
    96         /**
       
    97         * From CAknView
       
    98         * Handles the user interaction
       
    99         */
       
   100         void HandleCommandL( TInt aCommand ); 
       
   101         /**
       
   102         * From CAknView
       
   103         * Called upon the activation of the view. Creates the control
       
   104         * container and model
       
   105         */
       
   106         void DoActivateL( 
       
   107             const TVwsViewId& aPrevViewId, 
       
   108             TUid aCustomMessageId, 
       
   109             const TDesC8& aCustomMessage );
       
   110         
       
   111         /**
       
   112         * From CAknView
       
   113         * Deletes the control container and model
       
   114         */
       
   115         void DoDeactivate();
       
   116         
       
   117         /**
       
   118         * From CAknView (MEikMenuObserver)
       
   119         * Dynamically initializes the contents of the menu list
       
   120         */
       
   121         void DynInitMenuPaneL( TInt aResourceId,
       
   122                                CEikMenuPane* aMenuPane );
       
   123 
       
   124     protected:
       
   125 
       
   126         /**
       
   127         * C++ default constructor.
       
   128         * @param aTitleResourceID Title pane text's resource ID
       
   129         */
       
   130         CSIPSettListSIPSrvSetView( TInt aTitleResourceID );
       
   131            
       
   132     protected:  // Data
       
   133         
       
   134         // The view part of the profile list view
       
   135         CSIPSettListSIPSrvSetContainer* iView;
       
   136 
       
   137         // The model part of the profile list view
       
   138         CSIPSettListSIPSrvSetModel* iModel;
       
   139 
       
   140          // Title pane txt's resource id
       
   141         TInt iTitleResourceID;
       
   142         
       
   143         TVwsViewId iPrevViewId; // Previous view    
       
   144         
       
   145         TBool iExit;
       
   146         
       
   147     friend class UT_SIPSettListSIPRegSetView;
       
   148     };
       
   149 
       
   150 #endif      // SIP_SETT_LIST_SIP_SRV_SET_VIEW_H
       
   151             
       
   152 // End of File