
Originally Posted by
ranjeet raj
How to apply "reset" feature in application.
It was only just a feature idea, so it has nothing to do with signing and test.
Basically I was suggesting that you could have
"e:\private\<your>\MyDataFile.org"
(also referred in the .pkg file), but work with
"e:\private\<your>\MyDataFile.dat":
Code:
_LIT(KMyDataFileName,"e:\\private\\<your>\\MyDataFile.dat");
_LIT(KMyOrgDataFileName,"e:\\private\\<your>\\MyDataFile.org");
if(file.Open(fs,KMyDataFileName,EFileWrite)!=KErrNone)
{
CFileMan *fileman=CFileMan::NewL(fs);
CleanupStack::PushL(fileman);
User::LeaveIfError(fileman.Copy(KMyOrgDataFileName,KMyDataFileName));
CleanupStack::PopAndDestroy(); // fileman
User::LeaveIfError(file.Open(fs,KMyDataFileName,EFileWrite));
}
And if you already have this code, you can simply add an "fs.Delete(KMyDataFileName);" anywhere to restore the default settings of your application. But it is just a possible feature, it does not affect signing.