sipplugins/sippsipsettingsui/inc/sipsettlistsipprxsetview.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:27:36 +0100
branchRCL_3
changeset 44 0dcb073356a5
parent 0 307788aac0a8
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  The proxy setting view
*
*/



#ifndef SIP_SETT_LIST_SIP_PRX_SET_VIEW_H
#define SIP_SETT_LIST_SIP_PRX_SET_VIEW_H

//  INCLUDES

#include <aknview.h>
#include "tgssipserverdata.h"
#include "sipsettlistsipsrvsetview.h"

// FORWARD DECLARATIONS

class MGSSIPProfileHandler;

// CLASS DECLARATION

/**
*  CSIPSettListSIPPrxSetView view class
*  @since 3.0
*  view class for SIP Proxy settings
*/
class CSIPSettListSIPPrxSetView : public CSIPSettListSIPSrvSetView
    {
    public:  // Constructors and destructor
        
        /**
        * Two-phased constructor. Instance is placed on the cleanup stack
        * @param aHandler Profile handler
        */
        static CSIPSettListSIPPrxSetView* NewLC( 
        	MGSSIPProfileHandler* aHandler );
        
        /**
        * Destructor.
        */
        virtual ~CSIPSettListSIPPrxSetView();        

    public: // Functions from base classes

        /**
        * From CAknView.
        * Returns the UID of the view
        * @return UID of the view
        */
        TUid Id() const;        
    
    protected:  // Functions from base classes

        /**
        * From CSIPSettListSIPSrvSetView
        * Returns used data structure
        * @return Pointer to used server data structure
        */
        TGSSIPServerData* DataStruct();
        
        /**        
        * Returns used item list resource id        
        * @return Resource ID
        */
        TInt ResourceID();

        /**
        * From CGSSettListSIPSrvSetView
        * Returns used service profile class server view
        * @return used service profile class 
        */
        TSIPProfileTypeInfo::TSIPProfileClass ProfileType();

        /**
        * Checks is currently shown profile locked.
        * @return ETrue if profile is locked
        */
        TBool ProfileLocked();

    private:

        /**
        * C++ default constructor.
        * @param aHandler   Profile handler
        */
        CSIPSettListSIPPrxSetView( MGSSIPProfileHandler* aHandler );

        /**
        * By default Symbian 2nd phase constructor is private.
        */
        void ConstructL();          

    private:
        
        // Profile handler
        MGSSIPProfileHandler* iHandler;
        };

#endif      // SIP_SETT_LIST_SIP_PRX_SET_VIEW_H
            
// End of File