videofeeds/vcnsscheduleview/inc/CVcxNsScheduleSettingsSettingItem.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 25 May 2010 12:44:54 +0300
branchRCL_3
changeset 15 8f0df5c82986
parent 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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:    Video on Demand schedule settings item class.*
*/




#ifndef CVCXNSSCHEDULESETTINGSSETTINGITEM_H
#define CVCXNSSCHEDULESETTINGSSETTINGITEM_H

// INCLUDES
#include "CVcxNsScheduleSettingsViewContainer.h"

// FORWARD DECLARATIONS
class CVcxNsScheduleSettingsList;

/**
 * 
 *  VoD schedule settings view setting item class.
 *
 */
class CVcxNsScheduleSettingsSettingItem : public CBase
    {
    public: // constructors and destructor
        
        /**
        * Two-phased constructor
        *
        * @param Parent container
        * @param Scheduled download settings
        */
        static CVcxNsScheduleSettingsSettingItem* NewL( 
            CVcxNsScheduleSettingsViewContainer* aParent,
            CVcxNsServiceSettings& aScheduleSettings ); 
        
        /**
        * Destructor.
        */
        virtual ~CVcxNsScheduleSettingsSettingItem();
        
    private: // Construction.

        /**
        * Default C++ constructor.
        *
        * @param aParent            Parent container
        */    
        CVcxNsScheduleSettingsSettingItem( 
            CVcxNsScheduleSettingsViewContainer* aParent );

        /**
        * EPOC constructor.
		*
		* @param aScheduleSettings  Scheduled download settings
        */    
        void ConstructL( CVcxNsServiceSettings& aScheduleSettings );

    public: // New methods

        /**
         * Activate setting item.
         */    
        void ActivateL();

        /**
         * Deactivate settings item.
         */        
        void Deactivate();

		/**
		 * Edit selected item.
		 */
		void ChangeSelectedItemL();

		/**
		* Returns pointer to the settings list box.
		* Ownership is not transferred.
		*
		* @return List box pointer.
		*/
		CVcxNsScheduleSettingsList* Listbox();

    private: // Data
        
        /**
        * Pointer to parent container
        * Not own.  
        */    
        CVcxNsScheduleSettingsViewContainer* iParent;
        
        /**
        * Settings list box
        * Own.
        */    
        CVcxNsScheduleSettingsList* iListbox;
                       
    };
    
#endif /* CVCXNSSCHEDULESETTINGSSETTINGITEM_H */		

// End of File