--- a/photosgallery/viewframework/uiutilities/src/glxmmcnotifier.cpp Wed Sep 15 12:13:06 2010 +0300
+++ b/photosgallery/viewframework/uiutilities/src/glxmmcnotifier.cpp Wed Oct 13 14:32:09 2010 +0300
@@ -18,7 +18,7 @@
#include <glxtracer.h>
#include <glxlog.h>
-#include <driveinfo.h>
+
#include "glxmmcnotifier.h"
// ---------------------------------------------------------
@@ -92,11 +92,6 @@
TRACER("CGlxMMCNotifier::ConstructL()");
TInt err = iFs.Connect();
GLX_LOG_INFO1("CGlxMMCNotifier::ConstructL iFs.Connect err %d",err );
-
- User::LeaveIfError(DriveInfo::GetDefaultDrive(
- DriveInfo::EDefaultRemovableMassStorage, iDefaultMemoryCardDrive));
- GLX_LOG_INFO1("CGlxMMCNotifier::ConstructL iFs.Connect iDrive %d",
- iDefaultMemoryCardDrive );
IssueRequest();
}
@@ -119,13 +114,11 @@
TRACER("CGlxMMCNotifier::RunL()");
TDriveInfo driveInfo;
// Get the drive info for memory card
- TInt err = iFs.Drive(driveInfo, iDefaultMemoryCardDrive);
- GLX_LOG_INFO1("CGlxMMCNotifier::RunL driveInfo err=%d", err);
- if (err == KErrNone && (driveInfo.iDriveAtt & KDriveAttRemovable))
- {
- GLX_LOG_INFO1("CGlxMMCNotifier::RunL driveInfo.iDriveAtt=%d",
- driveInfo.iDriveAtt);
- switch (driveInfo.iType)
+ TInt err = iFs.Drive( driveInfo, EDriveF );
+ GLX_LOG_INFO1("CGlxMMCNotifier::RunL err %d",err );
+ if( err == KErrNone )
+ {
+ switch( driveInfo.iType )
{
case EMediaNotPresent:
{