コード例 #1
0
/**
 * Edit the setting item identified by the given id and store
 * the changes into the store.
 * @param aIndex the index of the setting item in SettingItemArray()
 * @param aCalledFromMenu true: a menu item invoked editing, thus
 *	always show the edit page and interactively edit the item;
 *	false: change the item in place if possible, else show the edit page
 */
void CSymbian_ua_guiSettingItemList::EditItemL ( TInt aIndex, TBool aCalledFromMenu )
{
    CAknSettingItem* item = ( *SettingItemArray() )[aIndex];
    switch ( item->Identifier() )
    {
        // [[[ begin generated region: do not modify [Editing Started Invoker]
        // ]]] end generated region [Editing Started Invoker]

    }

    CAknSettingItemList::EditItemL( aIndex, aCalledFromMenu );

    TBool storeValue = ETrue;
    switch ( item->Identifier() )
    {
        // [[[ begin generated region: do not modify [Editing Stopped Invoker]
        // ]]] end generated region [Editing Stopped Invoker]

    }

    if ( storeValue )
    {
        item->StoreL();
        SaveSettingValuesL();
    }
}
コード例 #2
0
/**
 * Edit the setting item identified by the given id and store
 * the changes into the store.
 * @param aIndex the index of the setting item in SettingItemArray()
 * @param aCalledFromMenu true: a menu item invoked editing, thus
 *	always show the edit page and interactively edit the item;
 *	false: change the item in place if possible, else show the edit page
 */
void CCalendarManagerSettingItemList::EditItemL ( TInt aIndex, TBool aCalledFromMenu )
	{
	aIndex = SettingItemArray()->ItemIndexFromVisibleIndex(aIndex);	
	CAknSettingItem* item = ( *SettingItemArray() )[aIndex];
	switch ( item->Identifier() )
		{
	// [[[ begin generated region: do not modify [Editing Started Invoker]
	// ]]] end generated region [Editing Started Invoker]
	
		}
	
	CAknSettingItemList::EditItemL( aIndex, aCalledFromMenu );
	
	TBool storeValue = ETrue;
	switch ( item->Identifier() )
		{
	// [[[ begin generated region: do not modify [Editing Stopped Invoker]
	// ]]] end generated region [Editing Stopped Invoker]
	
		}
		
	if ( storeValue )
		{
		item->StoreL();
		SaveSettingValuesL();
		}	
	}
コード例 #3
0
/**
 * Edit the setting item identified by the given id and store
 * the changes into the store.
 * @param aIndex the index of the setting item in SettingItemArray()
 * @param aCalledFromMenu true: a menu item invoked editing, thus
 *	always show the edit page and interactively edit the item;
 *	false: change the item in place if possible, else show the edit page
 */
void CSetupGisWeatherSettingItemList::EditItemL ( TInt aIndex, TBool aCalledFromMenu )
	{
	CAknSettingItem* item = ( *SettingItemArray() )[aIndex];
	switch ( item->Identifier() )
		{
	
		}

	switch(aIndex)
	    {
	case 5:
		iSettings.SelectApp();
		LoadSettingsL();
		break;
	case 6:
	    iSettings.SelectAP();
	    LoadSettingsL();
	    break;
	case 7:
	    InputUrl();
	    LoadSettingsL();
	    break;
	default:
	    CAknSettingItemList::EditItemL( aIndex, aCalledFromMenu );
	    break;
	    }
	//TResourceReader read;
	//asfawefiCoeEnv->CreateResourceReaderLC(read,R_SETTING_LIST_SETTING_TIME);
	TBool storeValue = ETrue;
	switch ( item->Identifier() )
	    {

	    }
		
	if ( storeValue )
		{
		item->StoreL();
		SaveSettingValuesL();
		}	
	}