profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfileAlertForSettingPage.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:30:29 +0100
branchRCL_3
changeset 23 cd54903d48da
parent 0 ca436256272f
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002 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:  Setting page class for "Alert for" setting.
*
*/



#ifndef CPROFILEALERTFORSETTINGPAGE_H
#define CPROFILEALERTFORSETTINGPAGE_H

// INCLUDES
#include <akncheckboxsettingpage.h>

// CLASS DECLARATION
/**
*  Setting page class for "Alert for" setting.
*  CProfileAlertForSettingPage extends CAknCheckBoxSettingPage in order to
*  hide left softkey when no contact groups are selected. However, it is
*  the responsibility of the setting page observer to call UpdateCbaL, when
*  setting changes.
*
*  @lib ProfileSettingsView.lib
*  @since 1.2
*/
NONSHARABLE_CLASS( CProfileAlertForSettingPage )
 : public CAknCheckBoxSettingPage
	{

	public:		// Constructor

        /**
        * C++ constructor.
        * @param aResourceID Setting page resource id.
        * @param aItemArray The array which contains all setting items.
        */
        CProfileAlertForSettingPage(
			TInt aResourceID, CSelectionItemList* aItemArray );

	public:		// New functions

		/**
		* Hides left softkey (Ok) if no items are selected.
		*/
		void UpdateCba();

	};

#endif // CPROFILEALERTFORSETTINGPAGE_H

// End of File