×
Namespaces

Variants
Actions
Revision as of 10:14, 3 May 2013 by hamishwillee (Talk | contribs)

Checking memory card availability using Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.


Article Metadata
Tested with
Devices(s): Nokia E90 Communicator
Nokia 6220 Classic
Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1
S60 3rd Edition, FP2
S60 3rd Edition FP2
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Keywords: Base F32, RFs, TVolumeInfo, Volume
Created: markuspe (13 Feb 2008)
Last edited: hamishwillee (03 May 2013)

Overview

This code snippet demonstrates how to check the availability of the memory card. This snippet can be self-signed.

Source file

TVolumeInfo vol;
TInt err = CCoeEnv::Static()->FsSession().Volume(vol, EDriveE);
CAknInformationNote* note = new ( ELeave ) CAknInformationNote;
if( err==KErrNotReady )
{
_LIT(KDriveNotPresent, "E drive not available");
note->ExecuteLD(KDriveNotPresent);
}
else
{
_LIT(KDrivePresent, "E drive available");
note->ExecuteLD(KDrivePresent);
}

Links

57 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×