Namespaces
Variants
Actions
Revision as of 07:41, 17 July 2012 by hamishwillee (Talk | contribs)

Checking memory card availability using Symbian C++

Jump to: navigation, search
Archived.png
Archived: 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

Article
Keywords: Base F32, RFs, TVolumeInfo, Volume
Created: markuspe (13 Feb 2008)
Last edited: hamishwillee (17 Jul 2012)

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

154 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved