commonuis/CommonDialogs/src/caknmemoryselectionmodelmultidrive.cpp
changeset 14 3320e4e6e8bb
parent 0 2f259fa3e83a
equal deleted inserted replaced
0:2f259fa3e83a 14:3320e4e6e8bb
    20 
    20 
    21 
    21 
    22 #include <coemain.h>
    22 #include <coemain.h>
    23 #include <StringLoader.h>
    23 #include <StringLoader.h>
    24 #include <commondialogs.rsg>
    24 #include <commondialogs.rsg>
    25 #include <rsfwmountman.h>
       
    26 #include <pathinfo.h> //PathInfo
    25 #include <pathinfo.h> //PathInfo
    27 #include <barsread.h>   // TResourceReader
    26 #include <barsread.h>   // TResourceReader
    28 #include <driveinfo.h> //DriveInfo
    27 #include <driveinfo.h> //DriveInfo
    29 #include "caknmemoryselectionmodelmultidrive.h"
    28 #include "caknmemoryselectionmodelmultidrive.h"
    30 #include "CAknCommonDialogsBase.h"
    29 #include "CAknCommonDialogsBase.h"
   981                 // Currently Remote drive does not support query for available
   980                 // Currently Remote drive does not support query for available
   982                 // disk space, so just return " "
   981                 // disk space, so just return " "
   983                 _LIT( KEmptySpace, " ");
   982                 _LIT( KEmptySpace, " ");
   984                 itemString.Append( KEmptySpace ); 
   983                 itemString.Append( KEmptySpace ); 
   985 
   984 
   986                 if( aDriveInfo.iConnectionState == KMountStronglyConnected )
   985                 //if( aDriveInfo.iConnectionState == KMountStronglyConnected )
   987                     {
   986                 //    {
       
   987                 // D-column icon: Show active icon if drive has no error
       
   988                 //    itemString.Append( KTabChar );
       
   989                 //    itemString.AppendFormat(
       
   990                 //      KImageHeader, EIconRemoteDriveActive );
       
   991                 //    }
       
   992                 //else // KMountNotConnected
       
   993                 //    {
   988                     // D-column icon: Show active icon if drive has no error
   994                     // D-column icon: Show active icon if drive has no error
   989                     itemString.Append( KTabChar );
   995                 itemString.Append( KTabChar );
   990                     itemString.AppendFormat(
   996                 //    }
   991                         KImageHeader, EIconRemoteDriveActive );
       
   992                     }
       
   993                 else // KMountNotConnected
       
   994                     {
       
   995                     // D-column icon: Show active icon if drive has no error
       
   996                     itemString.Append( KTabChar );
       
   997                     }
       
   998                 }
   997                 }
   999             else
   998             else
  1000                 {
   999                 {
  1001                 // 2nd row text:
  1000                 // 2nd row text:
  1002                 itemString.Append( *iLocStringArray[ ETextMMCUnavailable ] );
  1001                 itemString.Append( *iLocStringArray[ ETextMMCUnavailable ] );