diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-B120F909-251E-5209-901F-CAC0BE416C7C.dita --- a/Symbian3/PDK/Source/GUID-B120F909-251E-5209-901F-CAC0BE416C7C.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-B120F909-251E-5209-901F-CAC0BE416C7C.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,43 +1,43 @@ - - - - - -Phone -Storage TutorialA phone can have storage for different types of item, for example, -SMS messages, and phone book entries. -

This storage can be in different locations. It can be in the -phoneitself, or in the SIM card for GSM networks . -

- -Use RMobilePhone::GetPhoneStoreInfo() -

Queries the -storage is available and its status information like the number of slots in -use. -

-
-
- - -

Storage information is returned in a packaged RMobilePhoneStore::TMobilePhoneStoreInfoV1 object.

-Phone storage -example

The following code stores the number of free slots for -the SMS messages in the variable free. The combination of -the type of storage and location to query is indicated by KETelMeSmsStore flag -.

The code assumes iMobilePhone is an RMobilePhone object.

TRequestStatus status; - -RMobilePhoneStore::TMobilePhoneStoreInfoV1 mobilePhoneStoreInfo; -RMobilePhoneStore::TMobilePhoneStoreInfoV1Pckg mobilePhoneStoreInfoPckg(mobilePhoneStoreInfo); -iMobilePhone.GetPhoneStoreInfo(status, mobilePhoneStoreInfoPckg, KETelMeSmsStore); -User::WaitForRequest(status); -User::LeaveIfError(status.Int()); - -TInt free = mobilePhoneStoreInfo.iTotalEntries - mobilePhoneStoreInfo.iUsedEntries; -
+ + + + + +Phone +Storage TutorialA phone can have storage for different types of item, for example, +SMS messages, and phone book entries. +

This storage can be in different locations. It can be in the +phoneitself, or in the SIM card for GSM networks . +

+ +Use RMobilePhone::GetPhoneStoreInfo() +

Queries the +storage is available and its status information like the number of slots in +use. +

+
+
+ + +

Storage information is returned in a packaged RMobilePhoneStore::TMobilePhoneStoreInfoV1 object.

+Phone storage +example

The following code stores the number of free slots for +the SMS messages in the variable free. The combination of +the type of storage and location to query is indicated by KETelMeSmsStore flag +.

The code assumes iMobilePhone is an RMobilePhone object.

TRequestStatus status; + +RMobilePhoneStore::TMobilePhoneStoreInfoV1 mobilePhoneStoreInfo; +RMobilePhoneStore::TMobilePhoneStoreInfoV1Pckg mobilePhoneStoreInfoPckg(mobilePhoneStoreInfo); +iMobilePhone.GetPhoneStoreInfo(status, mobilePhoneStoreInfoPckg, KETelMeSmsStore); +User::WaitForRequest(status); +User::LeaveIfError(status.Int()); + +TInt free = mobilePhoneStoreInfo.iTotalEntries - mobilePhoneStoreInfo.iUsedEntries; +
\ No newline at end of file