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]