sipplugins/sippsipsettingsui/inc/sipsettlistsipregsetview.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 registrar setting view
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SIP_SETT_LIST_SIP_REG_SET_VIEW_H
       
    20 #define SIP_SETT_LIST_SIP_REG_SET_VIEW_H
       
    21 
       
    22 //  INCLUDES
       
    23 
       
    24 #include <aknview.h>
       
    25 #include "tsipsettingsdata.h"
       
    26 #include "sipsettlistsipsrvsetview.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 class MGSSIPProfileHandler;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  CSIPSettListSIPRegSetView view class
       
    36 *  @since 3.0
       
    37 *  view class for SIP Registration settings
       
    38 */
       
    39 class CSIPSettListSIPRegSetView : public CSIPSettListSIPSrvSetView
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42         
       
    43         /**
       
    44         * Two-phased constructor. Instance is placed on the cleanup stack
       
    45         * @param aHandler   Profile handler
       
    46         */
       
    47         static CSIPSettListSIPRegSetView* NewLC( 
       
    48             MGSSIPProfileHandler* aHandler );
       
    49         
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         virtual ~CSIPSettListSIPRegSetView();        
       
    54 
       
    55     public: // Functions from base classes
       
    56 
       
    57         /**
       
    58         * From CAknView.
       
    59         * Returns the UID of the view
       
    60         * @return UID of the view
       
    61         */
       
    62         TUid Id() const;        
       
    63     
       
    64     protected:  // Functions from base classes
       
    65 
       
    66         /**
       
    67         * From CSIPSettListSIPSrvSetView
       
    68         * Returns used data structure
       
    69         * @return Pointer to used server data structure
       
    70         */
       
    71         TGSSIPServerData* DataStruct();
       
    72 
       
    73         /**        
       
    74         * Returns used item list resource id        
       
    75         * @return Resource ID
       
    76         */
       
    77         TInt ResourceID();
       
    78 
       
    79         /**
       
    80         * From CGSSettListSIPSrvSetView
       
    81         * Returns used service profile class server view
       
    82         * @return used service profile class 
       
    83         */
       
    84         TSIPProfileTypeInfo::TSIPProfileClass ProfileType();        
       
    85 
       
    86         /**
       
    87         * Checks is currently shown profile locked.
       
    88         * @return ETrue if profile is locked
       
    89         */
       
    90         TBool ProfileLocked();
       
    91 
       
    92     private:
       
    93 
       
    94         /**
       
    95         * C++ default constructor.
       
    96         * @param aHandler   Profile handler
       
    97         */
       
    98         CSIPSettListSIPRegSetView( MGSSIPProfileHandler* aHandler );
       
    99 
       
   100         /**
       
   101         * By default Symbian 2nd phase constructor is private.
       
   102         */
       
   103         void ConstructL();
       
   104 
       
   105     private:
       
   106 
       
   107         // Profile handler
       
   108         MGSSIPProfileHandler* iHandler;
       
   109         
       
   110     friend class UT_SIPSettListSIPRegSetView;
       
   111     };
       
   112 
       
   113 #endif      // SIP_SETT_LIST_SIP_REG_SET_VIEW_H
       
   114             
       
   115 // End of File