equal
deleted
inserted
replaced
28 #include "hspsdomattribute.h" |
28 #include "hspsdomattribute.h" |
29 #include "hspsmanifest.h" |
29 #include "hspsmanifest.h" |
30 #include "bautils.h" |
30 #include "bautils.h" |
31 #include "sysutil.h" |
31 #include "sysutil.h" |
32 #include <syslangutil.h> |
32 #include <syslangutil.h> |
|
33 #include <DriveInfo.h> |
33 |
34 |
34 |
35 |
35 _LIT(KHspsFolder, "\\200159c0\\themes\\" ); |
36 _LIT(KHspsFolder, "\\200159c0\\themes\\" ); |
36 _LIT(KSourcesFolder, "\\sources\\"); |
37 _LIT(KSourcesFolder, "\\sources\\"); |
37 _LIT( KThemesFolder, "\\themes\\" ); |
38 _LIT( KThemesFolder, "\\themes\\" ); |
1994 TFindFile fileFinder( aFs ); |
1995 TFindFile fileFinder( aFs ); |
1995 fileFinder.SetFindMask( |
1996 fileFinder.SetFindMask( |
1996 KDriveAttExclude|KDriveAttRemovable|KDriveAttRemote|KDriveAttSubsted ); |
1997 KDriveAttExclude|KDriveAttRemovable|KDriveAttRemote|KDriveAttSubsted ); |
1997 if( aFindFromUdaEmmcDrives ) |
1998 if( aFindFromUdaEmmcDrives ) |
1998 { |
1999 { |
1999 aFs.SetSessionToPrivate( EDriveE ); |
2000 TInt drive = hspsServerUtil::GetEmmcDrivePath( aFs ); |
|
2001 if ( drive != KErrNotFound ) |
|
2002 { |
|
2003 aFs.SetSessionToPrivate( drive ); |
|
2004 } |
2000 } |
2005 } |
2001 else |
2006 else |
2002 { |
2007 { |
2003 aFs.SetSessionToPrivate( EDriveZ ); |
2008 aFs.SetSessionToPrivate( EDriveZ ); |
2004 } |
2009 } |
2196 CleanupStack::Pop( aLanguages ); |
2201 CleanupStack::Pop( aLanguages ); |
2197 } |
2202 } |
2198 |
2203 |
2199 |
2204 |
2200 // ----------------------------------------------------------------------------- |
2205 // ----------------------------------------------------------------------------- |
|
2206 // hspsServerUtil::GetEmmcDrivePathL |
|
2207 // ----------------------------------------------------------------------------- |
|
2208 // |
|
2209 TInt hspsServerUtil::GetEmmcDrivePath( RFs& aFs ) |
|
2210 { |
|
2211 TInt drive = KErrNotFound; |
|
2212 if ( DriveInfo::GetDefaultDrive( |
|
2213 DriveInfo::EDefaultMassStorage, drive ) == KErrNone ) |
|
2214 { |
|
2215 TUint status; |
|
2216 if ( DriveInfo::GetDriveStatus( aFs, drive, status ) == KErrNone ) |
|
2217 { |
|
2218 if ( status & DriveInfo::EDriveInternal ) |
|
2219 { |
|
2220 return drive; |
|
2221 } |
|
2222 } |
|
2223 } |
|
2224 return KErrNotFound; |
|
2225 } |
|
2226 |
|
2227 // ----------------------------------------------------------------------------- |
2201 // hspsServerUtil::hspsServerUtil |
2228 // hspsServerUtil::hspsServerUtil |
2202 // ----------------------------------------------------------------------------- |
2229 // ----------------------------------------------------------------------------- |
2203 // |
2230 // |
2204 hspsServerUtil::hspsServerUtil() |
2231 hspsServerUtil::hspsServerUtil() |
2205 { |
2232 { |