×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    27

    How to edit and save setting list item

    Hi all
    I want use setting list to show user information, fetched from web server, i send some information retrieved from setting list contains User, Password, Activation Code, and Status item box, i send these valuse from setting list "username, password and activation code" to web server using HTTP GET method and server send back information like some "text" info, now i want to store this value to setting list "Status" item, it is possible if so please help me, i searched in this forum but unable to find any solution.
    Thanks
    Bharat

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to edit and save setting list item

    you just save in a file or database and show it where ever you want. or do i mis-understood your problem ?

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    27

    Re: How to edit and save setting list item

    Hi mr skumar rao
    I am already saving setting list content in file and showing it in setting list, the main thing is supposed i want to get any new account status, then i have to fire HTTP GET method with Username, Password and Activation Code, which is recently entered by user, and "value" comes out from server, then the "value" get insert or update into Setting list item as "Activation Code" box, i think no doubt here.
    thanks
    Bharat

  4. #4
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: How to edit and save setting list item

    Hi,
    are you referring to the classic "GUI element"?

    If yes, here is a workable sample. Each of the files is in one "code" block, but yopu actually only need the first one:
    Code:
    /*
    ========================================================================
     Name        : LocaNoteSettingsGPSSettings.cpp
     Author      : Tamoggemon Software
     Copyright   : 
     Description : 
    ========================================================================
    */
    /**
     *	Generated helper class which manages the settings contained 
     *	in 'LocaNoteSettingsGPS'.  Each CAknSettingItem maintains
     *	a reference to data in this class so that changes in the setting
     *	item list can be synchronized with this storage.
     */
     
    // [[[ begin generated region: do not modify [Generated Includes]
    #include <e32base.h>
    #include <stringloader.h>
    #include <barsread.h>
    #include <LocaNote.rsg>
    #include "LocaNoteSettingsGPSSettings.h"
    // ]]] end generated region [Generated Includes]
    
    /**
     * C/C++ constructor for settings data, cannot throw
     */
    TLocaNoteSettingsGPSSettings::TLocaNoteSettingsGPSSettings()
    	{
    	}
    
    /**
     * Two-phase constructor for settings data
     */
    TLocaNoteSettingsGPSSettings* TLocaNoteSettingsGPSSettings::NewL()
    	{
    	TLocaNoteSettingsGPSSettings* data = new( ELeave ) TLocaNoteSettingsGPSSettings;
    	CleanupStack::PushL( data );
    	data->ConstructL();
    	CleanupStack::Pop( data );
    	return data;
    	}
    	
    /**
     *	Second phase for initializing settings data
     */
    void TLocaNoteSettingsGPSSettings::ConstructL()
    	{
    	// [[[ begin generated region: do not modify [Generated Initializers]
    	SetEnableGps( 0 );
    	SetGPSInterval( 1 );
    	SetSaveWithoutLocation( 0 );
    	// ]]] end generated region [Generated Initializers]
    	
    	}
    	
    // [[[ begin generated region: do not modify [Generated Contents]
    TInt& TLocaNoteSettingsGPSSettings::EnableGps()
    	{
    	return iEnableGps;
    	}
    
    void TLocaNoteSettingsGPSSettings::SetEnableGps(const TInt& aValue)
    	{
    	iEnableGps = aValue;
    	}
    
    TInt& TLocaNoteSettingsGPSSettings::GPSInterval()
    	{
    	return iGPSInterval;
    	}
    
    void TLocaNoteSettingsGPSSettings::SetGPSInterval(const TInt& aValue)
    	{
    	iGPSInterval = aValue;
    	}
    
    TInt& TLocaNoteSettingsGPSSettings::SaveWithoutLocation()
    	{
    	return iSaveWithoutLocation;
    	}
    
    void TLocaNoteSettingsGPSSettings::SetSaveWithoutLocation(const TInt& aValue)
    	{
    	iSaveWithoutLocation = aValue;
    	}
    
    // ]]] end generated region [Generated Contents]
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

Similar Threads

  1. Replies: 10
    Last Post: 2009-03-09, 09:09
  2. How to Save the State of a Setting Item..........
    By amey_symbian in forum Symbian
    Replies: 15
    Last Post: 2008-08-14, 13:48
  3. Exit form from edit mode
    By tqchcm in forum Symbian User Interface
    Replies: 13
    Last Post: 2007-10-31, 06:06
  4. Replies: 1
    Last Post: 2005-05-26, 14:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×