diff -r 000000000000 -r 951a5db380a0 videditor/ManualVideoEditor/inc/VeiSettingItemList.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videditor/ManualVideoEditor/inc/VeiSettingItemList.h Fri Jan 29 14:08:33 2010 +0200 @@ -0,0 +1,106 @@ +/* +* Copyright (c) 2010 Ixonos Plc. +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the "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: +* Ixonos Plc +* +* Description: +* +*/ + + + +#ifndef VEISETTINGITEMLIST_H +#define VEISETTINGSITEMLIST_H + +// INCLUDES +#include +#include "VeiSettings.h" + +// CLASS DECLARATION + +/** + * Setting item list for setting items. + */ +class CVeiSettingItemList: public CAknSettingItemList +{ +public: + // Constructor and destructor + + /** + * C++ default constructor for constructing this object. + * + * @param aSettings Reference to settings data class. + */ + CVeiSettingItemList( TVeiSettings& aSettings ); + + /** + * Destroys the object and releases all memory objects. + */ + ~CVeiSettingItemList(); + +public: + // New functions + + /** + * This launches the setting page for the highlighted item by calling + * EditItemL on it. + */ + void ChangeFocusedItemL(); + +public: + // Functions from base classes + + /** + * From CAknSettingItemList, this launches the setting + * page for the current item by calling EditItemL on it. + * Corresponding value is also saved by calling it's + * StoreL function. + * + * @param aIndex Current item's (Visible) index in the list. + * @param aCalledFromMenu In this case, passed directly to the base + * class. + */ + void EditItemL( TInt aIndex, TBool aCalledFromMenu ); + +protected: + // Functions from base classes + + /** + * From CAknSettingItemList, framework method to create + * a setting item based upon the user id aSettingId. + * Implementation decides what type to contruct. + * + * @param aSettingId ID to use to determine the type of the setting item. + * @return A constructed (not 2nd-stage constructed) setting item. + */ + CAknSettingItem* CreateSettingItemL( TInt aSettingId ); + + /** + * From CCoeControl, responds to size changes to sets the + * size and position of the contents of this control.Resizes the + * setting list accordingly. + */ + void SizeChanged(); + +private: + // Data + + /** + * Application settings data. + */ + TVeiSettings& iSettings; + +}; + +#endif // VEISETTINGSITEMLIST_H + +// End of File